shave one more byte

This commit is contained in:
Peter Ferrie 2021-11-05 15:17:06 -07:00
parent a0f739da58
commit 0fb8fa3b2a
2 changed files with 8 additions and 8 deletions

Binary file not shown.

View file

@ -53,18 +53,18 @@ _begin: push %cs # memory model cs=ds=es = 0x800
pop %ds pop %ds
pop %es pop %es
mov $kSymbols,%si mov $kSymbols,%si
mov %si,%cx push %si
xor %di,%di # mov g_str, %di
mov $37,%cx
cld
rep movsb
pop %cx
pop %ss pop %ss
mov %cx,%sp mov %cx,%sp
cld
mov $g_mem,%ax mov $g_mem,%ax
mov %ax,%fs # fs = &g_mem mov %ax,%fs # fs = &g_mem
xor %di,%di
rep stosb # clears our bss memory rep stosb # clears our bss memory
main: xor %di,%di # mov g_str, %di main: mov $'\n',%dl
mov $37,%cl
rep movsb
0: mov $'\n',%dl
call GetToken call GetToken
call GetObject call GetObject
mov $NIL,%dx mov $NIL,%dx
@ -72,7 +72,7 @@ main: xor %di,%di # mov g_str, %di
call PrintObject call PrintObject
mov $'\r',%al mov $'\r',%al
call PutChar call PutChar
jmp 0b jmp main
GetToken: # GetToken():al, dl is g_look GetToken: # GetToken():al, dl is g_look
mov $g_token,%di mov $g_token,%di