diff --git a/pyasm/test.asm b/pyasm/test.asm index a02aa42..2ac2037 100644 --- a/pyasm/test.asm +++ b/pyasm/test.asm @@ -1,21 +1,6 @@ -; a test comment on the first line +; a very simple 'smoke-test' file org 0100 -start law 10 - lac start2 ; comment - lac .-2 -; lac undef ; another comment - hlt - -fred equ 2 ; EQU - -; org 128 + 1 - org . + 010 - -start2 - lac start + 2 ; comment - nop -string data 'ascii' - hlt +start hlt end start diff --git a/pyasm/test2.asm b/pyasm/test2.asm new file mode 100644 index 0000000..d12e091 --- /dev/null +++ b/pyasm/test2.asm @@ -0,0 +1,17 @@ +; a test comment on the first line + org 0100 + +start law 10 + lac start2 ; comment + lac .-2 + hlt + +fred equ 2 ; EQU + + org . + 010 +start2 + lac start + 2 ; comment +string data 'ascii' +end hlt + + end start diff --git a/pyasm/test3.asm b/pyasm/test3.asm new file mode 100644 index 0000000..922de58 --- /dev/null +++ b/pyasm/test3.asm @@ -0,0 +1,8 @@ +; a file containing an undef + org 0100 + +start law 10 + lac undef ; another comment + hlt + + end start