Compare commits

...

2 Commits

Author SHA1 Message Date
ac2c4f9329 fix flag descriptions for some opcodes 2023-12-14 20:57:12 +01:00
818ee872f4 add add and sub keywords 2023-12-14 20:56:50 +01:00
2 changed files with 13 additions and 0 deletions

View File

@ -277,6 +277,10 @@ unaffected.
Affected Flags: n v - - - - z - (Other than immediate addressing)
- - - - - - z - (Immediate addressing only)
* n: Takes value of most significant bit of memory data
* v: Takes value of next-to-highest bit of memory data
* z: Set if logical AND of memory and accumulator is zero; else cleared
----------------------------------------------------------------------------------------------------
BMI *ca65-bmi*
@ -394,6 +398,10 @@ Affected Flags: b - i - - (6502)
- - - b d i - - (65C02, 65802/65816 emulation mode e = 1 )
- - - - d i - - (65802/65816 native mode e = 0)
* b: b in the P register value pushed onto the stack is set
* d: d is reset to 0, for binary arithmetic
* i: The interrupt disable flag is set, disabling hardware IRQ interrupts
----------------------------------------------------------------------------------------------------
BRL *ca65-brl*
@ -1277,6 +1285,7 @@ so cannot be pulled from it. The only means of settingthe e flag is the XCE inst
Affected Flags: n v - b d i z c (6502, 65C02, 65802/65816 emulation mode e = 1)
n v m x d i z c (65802/65816 native mode e = 0)
All flags are replaced by the values in the byte pulled from the stack.
----------------------------------------------------------------------------------------------------
@ -1339,6 +1348,7 @@ Pstatus register affect the m and x mode select flags).
Affected Flags: n v - - d i z c (65802/65816 emulation mode e = 1)
n v m x d i z c (65802/65816 native mode e = 0)
All flags for which an operand bit is set are reset to zero.
All other flags are unaffected by the instruction.
@ -1437,6 +1447,7 @@ Native Mode Stack before RTI:
Affected Flags: n v - - d i z c (6502, 65C02, 65802/65816 emulation mode e = 1)
n v m x d i z c (65802/65816 native mode e = 0)
All flags are restored to their values prior to interrupt (each flag takes the value of its corresponding bit in the stacked status byte, except that the Break flag is ignored).
----------------------------------------------------------------------------------------------------
@ -1577,6 +1588,7 @@ flags).
Affected Flags: n v - - d i z c (65802/65816 emulation e = 1)
n v m x d i z c (65802/65816 native mode e = 0)
All flags for which an operand bit is set are set to one.
All other flags are unaffected by the instruction.

View File

@ -85,6 +85,7 @@ syn keyword ca65PseudoVariables * .asize .cpu .isize .paramcount .time .version
syn keyword ca65PseudoFunctions .addrsize .bank .bankbyte .blank .concat .const .def,.defined .definedmacro .hibyte .hiword .ident .ismnem,.ismnemonic .left .lobyte .loword .match .max .mid .min .ref,.referenced .right .sizeof .sprintf .strat .string .strlen .tcount .xmatch
syn region ca65ProcLabel matchgroup=ca65ControlCommands start="\(\.proc\)" end="$" contains=ca65Comment keepend
" macro packs
syn keyword ca65MacGeneric add sub
syn region ca65MacLongbranchTarget matchgroup=ca65MacLongbranch start="\v(jcc|jcs|jeq|jmi|jne|jpl|jvc)[ \t]+" end="$" contains=ca65Comment keepend
syn region ca65MacGenericBranchTarget matchgroup=ca65MacGeneric start="\v(bge|blt|bgt|ble|bnz|bze)[ \t]+" end="$" contains=ca65Comment keepend