On two pass assembler, if there is assembly code like
test start 1000
first lda index
ldx index
read jsub strcpy
ldch str,x
comp eof
jeq end
lda index
add one
sta index
ldx index
j read
strcpy td indev
jeq strcpy
rd indev
stch str,x
rsub
end lda index
index word 0
one word 1
str resw 5
indev byte x'f3'
eof byte x'000004'
end first
how can I change it to binary code? especially that jump part? Are binary codes in loop section repeated as many time as loop actually executed?
%rep 4/ ... /%endrep.