#9610 - Lord Graga - Sun Aug 10, 2003 5:49 pm
Hey all, I just recently started to do some ARM ASM with ARM SDT, as I plan to release a 4K demo for the competition this year. However, I have a problem. The problem is, that I have made a palette for my entry, and it's 16 bits. However, when I use the method below, I can only get the first 8 bits of the palette. What am I doing wrong?
Code: |
AREA _mother, CODE, READONLY
ENTRY b initmother DCD 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 DCD 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 DCD 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 initmother ;SET MODE mov r0,#0x4000000 ldr r1,=0x400|0x4 str r1,[r0] ;PALETTE mov r0,#0x5000000 ldr r1,=colours palloop str r1,[r0] add r0,r0,#1 ldr r1,=colurs|r2 add r2,r2,#1 cmp r2,#255 bne palloop looper b looper colours INCBIN c:\projects\mother4k\palette END |