mirror of
https://github.com/marketideas/qasm.git
synced 2024-12-27 15:29:30 +00:00
Merge pull request #41 from ksherlock/ent-pass-two
(qasm iigs) ent label-list operand
This commit is contained in:
commit
13473d448b
@ -1673,8 +1673,6 @@ exdop
|
||||
entop
|
||||
]len equ workspace
|
||||
|
||||
lda passnum
|
||||
bne :xit
|
||||
lda macflag
|
||||
bit #%01100000
|
||||
beq :nomac
|
||||
@ -1684,6 +1682,9 @@ entop
|
||||
:nomac
|
||||
lda linelable
|
||||
bmi :group
|
||||
* label ent - first pass only.
|
||||
ldx passnum
|
||||
bne :xit
|
||||
asl
|
||||
asl
|
||||
tay
|
||||
@ -1762,7 +1763,10 @@ entop
|
||||
trb orgor
|
||||
jmp :xit
|
||||
|
||||
* ent label[,label] - second pass only.
|
||||
:group1 rep $30
|
||||
ldx passnum
|
||||
beq :xit
|
||||
sep $20
|
||||
ldy #$FFFF
|
||||
]lup iny
|
||||
@ -1806,12 +1810,9 @@ entop
|
||||
lda #$ffff
|
||||
sta fllast
|
||||
jsr findlable
|
||||
bcs :or
|
||||
jsr insertlable
|
||||
stz fllast
|
||||
dec fllast
|
||||
jcs :gerr1
|
||||
:or stz :offset
|
||||
bcc :gerr3
|
||||
|
||||
stz :offset
|
||||
ldy #26 ;point to type
|
||||
lda [lableptr],y
|
||||
and #macvarbit.externalbit.macrobit.variablebit.localbit
|
||||
@ -1837,6 +1838,9 @@ entop
|
||||
:gerr rep $30
|
||||
lda #badlable
|
||||
jmp :gerr1
|
||||
:gerr3 rep $30
|
||||
lda #undeflable
|
||||
jmp :gerr1
|
||||
:gerr2 rep $30
|
||||
lda #duplable
|
||||
:gerr1 rep $30
|
||||
|
Loading…
Reference in New Issue
Block a user