Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,2 @@
LDA #$05
STA temp ;temp equals 5 for the following

View file

@ -0,0 +1,2 @@
LDA #$08
AND temp

View file

@ -0,0 +1,2 @@
LDA #$08
ORA temp

View file

@ -0,0 +1,2 @@
LDA #$08
EOR temp

View file

@ -0,0 +1,2 @@
LDA #$08
EOR #255

View file

@ -0,0 +1,6 @@
LDA #$FF
CLC ;clear the carry. That way, ROR will not accidentally shift a 1 into the top bit of a positive number
BPL SKIP
SEC ;if the value in A is negative, setting the carry will ensure that ROR will insert a 1 into bit 7 of A upon rotating.
SKIP:
ROR

View file

@ -0,0 +1,2 @@
LDA #$01
ROL ;if the carry was set prior to the ROL, A = 3. If the carry was clear, A = 2.

View file

@ -0,0 +1,2 @@
LDA #$01
ROR ;if the carry was set prior to the ROR, A = 0x80. If clear, A = 0.