mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
Cleanup and added ASCIIZ test
This commit is contained in:
parent
26a8d7b54e
commit
7a3b610e92
@ -1,7 +1,7 @@
|
||||
; test file, old syntax tests
|
||||
; test file, new syntax
|
||||
org 0100
|
||||
law 1
|
||||
hlt
|
||||
end
|
||||
;|0100 004001
|
||||
;|0101 000000
|
||||
;|$1 004000 + 1
|
||||
;| 000000
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
; test file, new syntax
|
||||
org 0100
|
||||
law 1
|
||||
hlt
|
||||
end
|
||||
;|$1 004000 + 1
|
||||
;| 000000
|
||||
@ -4,6 +4,6 @@
|
||||
hlt
|
||||
end
|
||||
|
||||
;!0100 004002 ; is actually 004001
|
||||
;|0101 000000
|
||||
;!0102 000001 ; address outside block
|
||||
;!$1 004000 + 2 ; is actually 004001
|
||||
;| 000000
|
||||
;! 000001 ; address outside block
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
; deliberate errors at lines 7 and 9
|
||||
org 0100
|
||||
law 1
|
||||
hlt
|
||||
end
|
||||
|
||||
;!$1 004000 + 2 ; is actually 004001
|
||||
;| 000000
|
||||
;! 000001 ; address outside block
|
||||
21
pyasm/asm_tests/tests/asciiz
Normal file
21
pyasm/asm_tests/tests/asciiz
Normal file
@ -0,0 +1,21 @@
|
||||
; test ASCIIZ pseudo-op
|
||||
org 0100
|
||||
|
||||
print equ 0200
|
||||
|
||||
start law str
|
||||
jms print
|
||||
hlt
|
||||
|
||||
str asciiz 'str'
|
||||
str2 asciiz 'str0'
|
||||
|
||||
end start
|
||||
;|$1 0004000+.+3
|
||||
;| 0034000+0200
|
||||
;| 0000000
|
||||
;| 0071564 ; 'st'
|
||||
;| 0071000 ; 'r\0'
|
||||
;| 0071564 ; 'st'
|
||||
;| 0071060 ; 'r0'
|
||||
;| 0000000 ; zero byte
|
||||
@ -6,7 +6,7 @@
|
||||
law 2
|
||||
hlt
|
||||
end
|
||||
;|0100 004001
|
||||
;|0101 000000
|
||||
;|0200 004002
|
||||
;|0201 000000
|
||||
;|$1 004000 + 1
|
||||
;| 000000
|
||||
;|$2 004000 + 2
|
||||
;| 000000
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
; test file with two ORG blocks
|
||||
org 0100
|
||||
law 1
|
||||
hlt
|
||||
org 0200
|
||||
law 2
|
||||
hlt
|
||||
end
|
||||
;|$1 004000 + 1
|
||||
;| 000000
|
||||
;|$2 004000 + 2
|
||||
;| 000000
|
||||
@ -8,7 +8,7 @@
|
||||
hlt
|
||||
end
|
||||
|
||||
;|0100 004001
|
||||
;|0101 000000
|
||||
;|0102 004002
|
||||
;|0103 000000
|
||||
;|$1 004000 + 1
|
||||
;| 000000
|
||||
;| 004000 + 2
|
||||
;| 000000
|
||||
|
||||
@ -1,14 +0,0 @@
|
||||
; test file with two adjacent ORG blocks
|
||||
org 0100
|
||||
law 1
|
||||
hlt
|
||||
|
||||
org 0102
|
||||
law 2
|
||||
hlt
|
||||
end
|
||||
|
||||
;|$1 004000 + 1
|
||||
;| 000000
|
||||
;| 004000 + 2
|
||||
;| 000000
|
||||
Loading…
x
Reference in New Issue
Block a user