mirror of
https://github.com/samsonjs/sectorlisp.git
synced 2026-04-27 14:57:41 +00:00
shave one byte
This commit is contained in:
parent
7e8979fa7c
commit
041d23e99b
2 changed files with 5 additions and 5 deletions
Binary file not shown.
10
sectorlisp.S
10
sectorlisp.S
|
|
@ -111,7 +111,8 @@ GetObject: # called just after GetToken
|
||||||
dec %di
|
dec %di
|
||||||
scasb
|
scasb
|
||||||
jne 1b
|
jne 1b
|
||||||
jmp 5f
|
pop %ax # restore 1
|
||||||
|
ret
|
||||||
2: pop %bp # drop 1
|
2: pop %bp # drop 1
|
||||||
mov %cx,%si
|
mov %cx,%si
|
||||||
3: scasb
|
3: scasb
|
||||||
|
|
@ -123,8 +124,8 @@ GetObject: # called just after GetToken
|
||||||
dec %di
|
dec %di
|
||||||
scasb
|
scasb
|
||||||
jnz 4b
|
jnz 4b
|
||||||
5: pop %ax # restore 1
|
pop %ax # restore 1
|
||||||
.ret: ret
|
ret
|
||||||
|
|
||||||
GetChar:xor %ax,%ax # GetChar→al:dl
|
GetChar:xor %ax,%ax # GetChar→al:dl
|
||||||
int $0x16 # get keystroke
|
int $0x16 # get keystroke
|
||||||
|
|
@ -140,8 +141,7 @@ PutChar:mov $0x0e,%ah # prints CP-437
|
||||||
Pairlis:test %di,%di # Pairlis(x:di,y:si,a:dx):ax
|
Pairlis:test %di,%di # Pairlis(x:di,y:si,a:dx):ax
|
||||||
jz 1f # jump if nil
|
jz 1f # jump if nil
|
||||||
push (%bx,%di) # save 1 Cdr(x)
|
push (%bx,%di) # save 1 Cdr(x)
|
||||||
lodsw
|
push (%bx,%si) # save 2 Cdr(y)
|
||||||
push (%si) # save 2 Cdr(y)
|
|
||||||
mov (%di),%di
|
mov (%di),%di
|
||||||
call Cons # preserves dx
|
call Cons # preserves dx
|
||||||
pop %si # restore 2
|
pop %si # restore 2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue