??? 05/03/06 13:46 Read: times |
#115469 - using memory |
Hi,
There I'm still learning (who isn't) about programming, i wondered how you can use the memory to use more than 16 stored byte values with the instruction "DB". for so far I'm using this methode where you can call up to 16 memory locations : Code: inc A ; acc 1x cause of the return movc A,@A+PC ; get the code out of the table ret ; capbgefd Table: db 00101000b ; 0 bit-rang 7-6-5-4-3-2-1-0 db 01101111b ; 1 segment c-a-p-b-g-e-f-d db 10100010b ; 2 db 00100110b ; 3 a db 01100101b ; 4 === db 00110100b ; 5 f # # b db 00110000b ; 6 =g= db 00101111b ; 7 e # # c db 00100000b ; 8 === p <- decimal db 00100100b ; 9 d point db 01110001b ; A db 01110000b ; B db 10111000b ; C db 01100010b ; D db 10110000b ; E db 10110001b ; F Now i would like to have some system so I can store the whole alfabet and more, if possible. But I think I'll need a whole new methode for that, as here I use the hex-quantety. Thanks in advance! John |
Topic | Author | Date |
using memory | 01/01/70 00:00 | |
1) what is the problem 2) as always, the | 01/01/70 00:00 | |
Not in the "bible"? | 01/01/70 00:00 | |
oh well | 01/01/70 00:00 | |
16 limit? | 01/01/70 00:00 | |
Exactly! It's assembler syntax. | 01/01/70 00:00 | |
Pseudo Instruction | 01/01/70 00:00 | |
Pseudo Instruction? | 01/01/70 00:00 | |
"Pseudo-Op" ??? | 01/01/70 00:00 | |
Blur | 01/01/70 00:00 | |
Top marks | 01/01/70 00:00 | |
movc | 01/01/70 00:00 |