Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sectorc.s
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ compile_stmts:

mov ax,[bx] ; load function offset from symbol-table
sub ax,di ; compute relative to this location: "dest - cur - 2"
sub ax,2
dec ax ; (shorter than 'sub ax,2')
dec ax
stosw ; emit target

jmp compile_stmts_tok_next2 ; loop to compile next statement
Expand Down Expand Up @@ -148,7 +149,8 @@ _patch_back:
stosb
pop ax ; restore loop start location
sub ax,di ; compute relative to this location: "dest - cur - 2"
sub ax,2
dec ax ; (shorter than 'sub ax,2')
dec ax
stosw ; emit target
;; [fall-through]
_patch_fwd:
Expand Down