chartab: migrate to com format and awk assembler

This commit is contained in:
Nero 2023-01-01 21:42:02 +00:00
parent 50b98bf7af
commit 441bcbf40f
2 changed files with 3 additions and 11 deletions

View File

@ -368,7 +368,7 @@ op in alu {
op=="test" {
push_op_modrm(132) # 84
if (!hex) {
size=push_op_fixed_spare(246, 7)
size=push_op_fixed_spare(246, 0)
if (size==1) {
push_byte(getsym(op2))
} else if (size==2) {

View File

@ -1,8 +1,4 @@
org 0x7C00
init xor ax, ax
mov ss, ax
mov sp, ax
org 0x100
mov ax, 0x0e20
xor bx, bx
@ -53,14 +49,10 @@ init xor ax, ax
cmp cx, 0x100
jc .line
halt hlt
jmp halt
ret
btoa add al, 0x30
cmp al, 0x3A
jc .ret
add al, 7
.ret ret
times (0x1FE - ($-$$)) db 0
dw 0xAA55