mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-22 03:30:46 +00:00
df7f1bf06b
I had to modify two regression tests because they barfed in the second pass, but real-world code would not do this, so I'm okay with this incompatibility. git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@400 4df02467-bbd4-4a76-a152-e7ce94205b78
37 lines
529 B
Plaintext
37 lines
529 B
Plaintext
!macro a @r {
|
|
!if @r != 1 {
|
|
!error "postfix did not work"
|
|
}
|
|
}
|
|
*=$1000
|
|
a = 3
|
|
a+2 = 3 ; symbol has not been read, so adding postfix should work
|
|
label
|
|
label+2 ; label has not been read, so adding postfix should work
|
|
!set b+2 = 17
|
|
label2
|
|
lda b
|
|
+a * - label2 == 3
|
|
label3
|
|
!for c+2, 17, 17 {
|
|
lda c
|
|
}
|
|
+a * - label3 == 3
|
|
d+2 = 17
|
|
!set d+2 = 17
|
|
label4
|
|
lda d
|
|
+a * - label4 == 3
|
|
label5
|
|
!set e+2=5
|
|
!for e+2, 17, 17 {
|
|
lda e
|
|
}
|
|
+a * - label5 == 3
|
|
label6
|
|
f+3 = 17
|
|
!for g+2, f, f {
|
|
lda g
|
|
}
|
|
+a * - label6 == 3
|