CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
|
|
@ -0,0 +1,2 @@
|
|||
LDA #10
|
||||
CMP #11
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
BNE ;Branch on Not Equal - branch when the zero flag is set
|
||||
BEQ ;Branch on EQual - branch when the zero flag is set.
|
||||
;The zero flag is set when the result of an operation is zero
|
||||
|
||||
BMI ;Branch on MInus
|
||||
BPL ;Branch on PLus - branch when the sign flag is cleared/set.
|
||||
;The sign flag is set when the result of an instruction is a negative number
|
||||
;and cleared when the result is a positive number
|
||||
|
||||
BVS ;Branch on oVerflow Set
|
||||
BVC ;Branch on oVerflow Cleared - branch when the overflow flag is cleared/set.
|
||||
;The overflow flag is set when the result of an addition/subtraction would
|
||||
;result in a number larger than 127 or smaller than -128
|
||||
|
||||
BCS ;Branch on Carry Set
|
||||
BCC ;Branch on Carry Clear - branch when the carry flag is cleared/set.
|
||||
;The carry flag is set when an addition produced a carry and when
|
||||
;a subtraction produced a borrow and cleared if an addition/subtraction
|
||||
;does not produce a carry/borrow. The carry flag also holds bits
|
||||
;after shifts and rotates.
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
LDA #200
|
||||
CMP Variable
|
||||
BEQ #3 ;if equal, skip ahead 3 bytes...
|
||||
CLC ;if unequal, continue executing instructions
|
||||
ADC #1
|
||||
STA OtherVariable ; ...to here.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
LDX #100
|
||||
Loop: ...do something
|
||||
DEX
|
||||
BNE Loop
|
||||
Loading…
Add table
Add a link
Reference in a new issue