Playing with NASM

This commit is contained in:
Jeff Parsons 2015-04-04 12:35:36 -07:00 committed by jeffpar
commit 96a39c9bbe
8 changed files with 15310 additions and 2 deletions

4
tests/pc/80386/makefile Normal file
View 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
View 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