How to read bytes in sequence

JMP $FCE2
Theway75
Member
Member
Posts: 2
Joined: Fri Jan 28, 2022 3:16 pm
Contact:

How to read bytes in sequence

Post by Theway75 »

Hi, this is my first time here.
I'm trying to learn simple assembly routines for c64, using CBM prgStudio and it's great fun!

The thing I want to ask is this. I've this simple routine :

*=$1000
lda $00
sta $d020
jsr $e544
Main

jsr clear
ldx #$00

clear
lda TestMap
sta $0400,x
inx
cpx #40
bne clear
rts

TestMap
byte $e0,$01,$0a

I'd like that the two bytes at the end in Testmap, would be read in sequence $e0,$01,$0a... etc but a the moment it reads only the first one and I can't find a way to do it. :roll:

Thanks


User avatar
eslapion
Active Member
Active Member
Posts: 1215
Joined: Mon Jul 20, 2015 10:11 am
Location: Canada
Contact:

Re: How to read bytes in sequence

Post by eslapion »

LDA $TestMap,x
Wealth, like happiness, is never attained directly. It comes as a by-product of providing a useful service. -Harland D. Sanders
Theway75
Member
Member
Posts: 2
Joined: Fri Jan 28, 2022 3:16 pm
Contact:

Re: How to read bytes in sequence

Post by Theway75 »

Yes ,thanks! indeed, I found it after several attempts
Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 6 guests