Hello,
I need to work with 24 bits addresses for a 1024 bits memory, last byte of the memory will be at $01FFFF. 256 bytes make a PAGE and 256 PAGES make a SECTOR and there are 2 SECTORS.
I was wondering how I could increment such address.
There are no Doubleword in PBP, right?
Then I should use for example:
address_low VAR WORD
address_high VAR WORD
I will fill the memory with words of data si I will have to increment the memory by increments of 2 bytes.
If I increment the address of 2 bytes at every iteration in a loop, I will use:
address_low == address_low + 2
If (address_low > $ffff) then 'if I was at address_low = $ffff
address_low = $02 '---> do I have to set the value myself or will there be a rollover ???
address_high = (address_high + 1) 'start in second block
endif
Isn't there an easier way to increment a double word variable?
Bookmarks