40
sam9669
7y

ORG 0000H
MOV R0,#00H
MOV R1,#50H
MOV R2,#00H
MOV R3,#60H
MOV R4,#05H
MOV DPL,R0 LOOP:
MOV DPH,R1
MOVX A,@DPTR
CPL A
MOV DPL,R2
MOV DPH,R3
MOVX @DPTR,A
INC R0
INC R2
DJNZ R4,LOOP
END

Comments
  • 4
    To transfer a block of data from loc 5000H to loc 6000H with its complemented value (5bytes only)
  • 16
    @sam9669
    >tfw u r the only assembly programmer in the room
    Damn I feel old......
  • 1
    Say hello to wreg I miss him!
  • 3
    I remember when I started learning asm 6502 for coding on my student club's commodore 64, even though I don't have time to work on it anymore, I found it somehow way more fun than coding in high level languages such as C#
  • 6
    Caps lock and no indenting make that hard to read.
    Also, having the label on the right is very strange to me.
  • 1
    Too bad I only learned a little z80 assembly
  • 1
    @sam9669 i code assembler too. But realy assembly
  • 0
    @Ashkin I know , but for the left indent, I had to add spaces to all the code above ...so yeah ... XD
  • 1
    It looks similar to Z80 asm which I used in the good old times making calculator games, ti-86 :)
Add Comment