mirror of
https://github.com/marketideas/qasm.git
synced 2024-06-02 08:41:27 +00:00
Merge branch 'master' of github.com:marketideas/qasm
This commit is contained in:
commit
e74f463a1e
2
asm.h
2
asm.h
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "app.h"
|
#include "app.h"
|
||||||
|
//
|
||||||
#define OPHANDLER(ACB) std::bind(ACB, this, std::placeholders::_1, std::placeholders::_2)
|
#define OPHANDLER(ACB) std::bind(ACB, this, std::placeholders::_1, std::placeholders::_2)
|
||||||
|
|
||||||
#define MODE_6502 0
|
#define MODE_6502 0
|
||||||
|
|
|
@ -2418,7 +2418,11 @@ addmode php
|
||||||
beq :skipq
|
beq :skipq
|
||||||
cmp #$22 ; "
|
cmp #$22 ; "
|
||||||
beq :skipq
|
beq :skipq
|
||||||
|
and #$5f
|
||||||
|
cmp #'A'
|
||||||
|
beq :a
|
||||||
jmp :index
|
jmp :index
|
||||||
|
|
||||||
:force8 lda #amforce8
|
:force8 lda #amforce8
|
||||||
tsb myvalue
|
tsb myvalue
|
||||||
jmp :index
|
jmp :index
|
||||||
|
@ -2435,6 +2439,14 @@ addmode php
|
||||||
tsb myvalue
|
tsb myvalue
|
||||||
jmp :index
|
jmp :index
|
||||||
|
|
||||||
|
* 'a' (no modifier) is ignored
|
||||||
|
:a iny
|
||||||
|
lda [lineptr],y
|
||||||
|
cmp #' '+1
|
||||||
|
jlt :zero
|
||||||
|
dey
|
||||||
|
jmp :index
|
||||||
|
|
||||||
* skip over quoted operand component.
|
* skip over quoted operand component.
|
||||||
:skipq sta :q
|
:skipq sta :q
|
||||||
:skipq1 iny
|
:skipq1 iny
|
||||||
|
|
10
testdata/3015-amacc.S
vendored
Normal file
10
testdata/3015-amacc.S
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
*
|
||||||
|
* explicit a operand (inc a, etc) is dropped.
|
||||||
|
*
|
||||||
|
|
||||||
|
inc a
|
||||||
|
dec a
|
||||||
|
lsr a
|
||||||
|
asl a
|
||||||
|
rol a
|
||||||
|
ror a
|
Loading…
Reference in New Issue
Block a user