Skip to content

Instantly share code, notes, and snippets.

@oxling
Created June 30, 2012 21:26
Show Gist options
  • Save oxling/3025575 to your computer and use it in GitHub Desktop.
Save oxling/3025575 to your computer and use it in GitHub Desktop.
Machine code to Assembly
...
C0 06 D0 03 4C 88 C2 C0 07 D0 03 4C 6E C2 98 48 20 24 CB D0 0A AD FB 04 29 28 D0 03 4C A4 C1 68 A8 A9 C1 48 B9 EA CF 48
60 A4 24 A5 25 48 20 24 FC 20 F4 C2 A0 00 68 69 00 C5 23 90 F0 20 22 FC 4C EB C2 A5 22 85 25 A0 00 84 24 F0 E0 A5 22 48
20 24 FC A5 28 85 2A A5 29 85 2B A4 21 88 68 69 01 C5 23 B0 0D 48 20 24 FC B1 28 91 2A 88 10 F9 30 E1 A0 00 20 F4 C2 20
22 FC 4C EB C2 A4 24 A9 A0 91 28 C8 C4 21 90 F9 B0 17 A9 28 85 21 A9 18 85 23 A9 17 85 25 20 22 FC 4C EB C2 A4 1F 20 F4
C2 4C EB C2 68 A8 AD FB 04 29 FE 8D FB 04 68 8D 78 04 68 48 4A 4A 4A AD 78 04 48 B0 08 AD FB 04 09 01 8D FB 04 A5 25 8D
FB 05 4C FF C1 20 A4 CC 4C EB C2 20 48 CD 4C EB C2 A4 1F 20 4E CD 4C EB C2 20 23 CD 4C EB C2 4C 19 C2 4C 34 C2 20 42 CD
AD 7B 05 85 24 8D 7B 04 AD FB 05 85 25 10 2F 20 51 CB A5 24 2C 1F C0 10 05 CD 7B 04 F0 03 8D 7B 05 A9 C1 48 B9 F3 CF
....
CPY #$06
BNE $03
JMP $88C2
CPY #$07
BNE $03
JMP $6EC2
TYA
PHA
JSR $24CB
BNE $0A
LDA $FB04
AND #$28
BNE $03
JMP $A4C1
PLA
TAY
LDA #$C1
PHA
LDA $EACF,Y
PHA
RTS
LDY $24
LDA $25
PHA
JSR $24FC
JSR $F4C2
LDY #$00
PLA
ADC #$00
CMP $23
BCC $F0
JSR $22FC
JMP $EBC2
LDA $22
STA $25
LDY #$00
STY $24
BEQ $E0
LDA $22
PHA
JSR $24FC
LDA $28
STA $2A
LDA $29
STA $2B
LDY $21
DEY
PLA
ADC #$01
CMP $23
BCS $0D
PHA
JSR $24FC
LDA ($28),Y
STA ($2A),Y
DEY
BPL $F9
BMI $E1
LDY #$00
JSR $F4C2
JSR $22FC
JMP $EBC2
LDY $24
LDA #$A0
STA ($28),Y
INY
CPY $21
BCC $F9
BCS $17
LDA #$28
STA $21
LDA #$18
STA $23
LDA #$17
STA $25
JSR $22FC
JMP $EBC2
LDY $1F
JSR $F4C2
JMP $EBC2
PLA
TAY
LDA $FB04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment