Support for "virtual operands" of subroutines like this:

jsr	SomeProc
.byte	$00, $01 ; argument to SomeProc
; return here from SomeProc
bit	$3F
This commit is contained in:
AIDA Shinra
2018-06-10 18:09:11 +09:00
parent b74ab9de89
commit 9283e9ca98
9 changed files with 66 additions and 4 deletions

View File

@@ -542,6 +542,18 @@ code. The following attributes are recognized:
range, where <tt/label/ is the label name given with the <tt/NAME/
attribute, and <tt/offs/ is the offset within the data.
<tag><tt>VOPERAND</tt></tag>
This optional attribute is followed by a numerical value. It tells the
assembler that subroutine calls to this label follow "virtual operands"
of the given bytes like this:
<tscreen><verb>
JSR LabelWith2BytesOfVoperand
.byte $00, $10 ; virtual operands
; return here
BIT $0F
</verb></tscreen>
</descrip>