Allow the WDM instruction to be used in the mini-assembler.

This can be useful under emulators that may implement special functionality using WDM.

It is implemented as taking a one-byte numeric operand.
This commit is contained in:
Stephen Heumann 2020-01-11 21:58:21 -06:00
parent 3ce2be9f74
commit 7e822819b7
3 changed files with 9 additions and 2 deletions

View File

@ -584,6 +584,13 @@ while not (token.kind in [rbracech,eofsy]) do begin
code^.s := 0;
end {if opc = o_brk}
{handle the wdm instruction (treated as having a one-byte operand)}
else if opc = o_wdm then begin
Exp([semicolonch], true);
code^.r := ord(direct);
code^.s := $42;
end {if opc = o_wdm}
{handle moves}
else if opc in [o_mvn,o_mvp] then begin
if opc = o_mvn then

View File

@ -355,7 +355,7 @@ type
o_dcb,o_dcw,o_dcl,
o_brk,
o_brk,o_wdm,
o_mvn,o_mvp,

View File

@ -639,7 +639,7 @@ names start mini-assembler op code names
dc c'peapeireprolrorsbcsepstastxsty'
dc c'stztrbtsb'
dc c'dcbdcwdcl'
dc c'brk'
dc c'brkwdm'
dc c'mvnmvp'
dc c'bccbcsbeqbmibnebplbrabrlperbvc'
dc c'bvs'