4759
This commit is contained in:
parent
1bd60d9f31
commit
4e647f4f21
|
@ -6,8 +6,8 @@
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
# syscall(exit, 0) -- can't test these functions just yet
|
# syscall(exit, 0) -- can't test _write just yet
|
||||||
bb/copy-to-EBX 0/imm32
|
bb/copy-to-EBX 0/imm32
|
||||||
b8/copy-to-EAX 1/imm32
|
b8/copy-to-EAX 1/imm32
|
||||||
cd/syscall 0x80/imm8
|
cd/syscall 0x80/imm8
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
# exit(Num-test-failures)
|
# exit(Num-test-failures)
|
||||||
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
# exit(Num-test-failures)
|
# exit(Num-test-failures)
|
||||||
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
||||||
|
|
|
@ -43,7 +43,7 @@ _test-trace-stream:
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
# syscall(exit, Num-test-failures)
|
# syscall(exit, Num-test-failures)
|
||||||
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
# syscall(exit, Num-test-failures)
|
# syscall(exit, Num-test-failures)
|
||||||
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
||||||
|
|
|
@ -31,9 +31,9 @@
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
#? e8/call test-stop-skips-returns-on-exit/disp32
|
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
|
#? e8/call test-stop-skips-returns-on-exit/disp32
|
||||||
# syscall(exit, Num-test-failures)
|
# syscall(exit, Num-test-failures)
|
||||||
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
||||||
b8/copy-to-EAX 1/imm32
|
b8/copy-to-EAX 1/imm32
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
# syscall(exit, Num-test-failures)
|
# syscall(exit, Num-test-failures)
|
||||||
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
||||||
|
|
|
@ -32,7 +32,7 @@ Stdin:
|
||||||
# op subop mod rm32 base index scale r32
|
# op subop mod rm32 base index scale r32
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main:
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
#? e8/call test-read-byte-multiple/disp32
|
#? e8/call test-read-byte-multiple/disp32
|
||||||
# syscall(exit, Num-test-failures)
|
# syscall(exit, Num-test-failures)
|
||||||
|
|
Loading…
Reference in New Issue