Playing with NASM
This commit is contained in:
parent
29d5f078a7
commit
96a39c9bbe
8 changed files with 15310 additions and 2 deletions
4
tests/pc/80386/makefile
Normal file
4
tests/pc/80386/makefile
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
all: tests.rom
|
||||
|
||||
tests.rom: tests.nasm
|
||||
nasm -f bin tests.nasm -l tests.lst -o tests.rom
|
||||
14
tests/pc/80386/tests.nasm
Normal file
14
tests/pc/80386/tests.nasm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
cpu 386
|
||||
|
||||
org 0x0000
|
||||
section .text
|
||||
|
||||
bits 16
|
||||
|
||||
start: mov eax,0x11223344
|
||||
mov edx,0x55667788
|
||||
|
||||
times 0xfff0-($-$$) db 0
|
||||
|
||||
bits 16
|
||||
jmp 0xf000:start
|
||||
Loading…
Reference in a new issue