Add listing 0044.txt, rm test files at the end of script

This commit is contained in:
Joseph Ferano 2025-03-16 23:55:26 +07:00
parent 6e7783c623
commit 118ed482c1
2 changed files with 24 additions and 1 deletions

23
asm_files/list-0044.txt Normal file
View File

@ -0,0 +1,23 @@
--- test\listing_0044_register_movs execution ---
mov ax, 1 ; ax:0x0->0x1
mov bx, 2 ; bx:0x0->0x2
mov cx, 3 ; cx:0x0->0x3
mov dx, 4 ; dx:0x0->0x4
mov sp, ax ; sp:0x0->0x1
mov bp, bx ; bp:0x0->0x2
mov si, cx ; si:0x0->0x3
mov di, dx ; di:0x0->0x4
mov dx, sp ; dx:0x4->0x1
mov cx, bp ; cx:0x3->0x2
mov bx, si ; bx:0x2->0x3
mov ax, di ; ax:0x1->0x4
Final registers:
ax: 0x0004 (4)
bx: 0x0003 (3)
cx: 0x0002 (2)
dx: 0x0001 (1)
sp: 0x0001 (1)
bp: 0x0002 (2)
si: 0x0003 (3)
di: 0x0004 (4)

View File

@ -19,5 +19,5 @@ do
./sim8086 asm_files/${asm_listing}.bin | awk '{print $1 ":" $5}' | sort > temp1 ./sim8086 asm_files/${asm_listing}.bin | awk '{print $1 ":" $5}' | sort > temp1
cat $asm_txt | awk '/Final registers/,0' | tail -n +2 | awk '{print $1 $2}' | sort > temp2 cat $asm_txt | awk '/Final registers/,0' | tail -n +2 | awk '{print $1 $2}' | sort > temp2
diff -U0 --color temp1 temp2 diff -U0 --color temp1 temp2
rm temp1 temp2
done done
rm temp1 temp2