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" { op=="test" {
push_op_modrm(132) # 84 push_op_modrm(132) # 84
if (!hex) { if (!hex) {
size=push_op_fixed_spare(246, 7) size=push_op_fixed_spare(246, 0)
if (size==1) { if (size==1) {
push_byte(getsym(op2)) push_byte(getsym(op2))
} else if (size==2) { } else if (size==2) {

View File

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