The vucc compiler has an option that sets the value of the global pointer, gp (r4), so that the bss and data sections can be accessed by gp offset.
-msda=n “[puts] static or global variables whose size is n bytes or less into the small data area that register gp points to”, but vb.ld would need fixing up to get it working.
This reply was modified 15 years, 11 months ago by dasi.
This reply was modified 15 years, 11 months ago by dasi.
DogP wrote:
The column table thing doesn’t seem to do anything, but I haven’t looked into it at all, so it could just be a stupid mistake on addressing or something, or I may not be understanding how it works (maybe needs LOCK first?).
This will work, but the column table is read from the start address down, not up, so you’re writing to the table in the wrong direction.
Also, make sure that (REPEAT + 1) x (BRTA + BRTB + BRTC + REST + 5) x 50 ns is less than the column period. Note that the shortest column period setting in the standard column table is 12.2 µs, and 255 + 5 x 50 ns = 13 µs.
jorgeche wrote:
I use exactly 20 chars for each animation frame, and only one bgmap definition, so on each change of frame I write the char memory not bgmap, so the bgmap still points to the same chars in char memory.
Why not just make an image with all your frames (like zub_frames_vb.gif), convert to a BG map and chars, and control which frame is displayed by simply changing the offset into the BG?
It looks like the forum resizes images larger than 500 pixels. Could this limit be increase to 512 to allow a segment to be displayed without being resized?
RunnerPack wrote:
I was just browsing the source and noticed you commented out that option.
Oh yeah, -mRa is one of the tile reduction combo options, equivalent to -mRt. I commented it out because the GBA doesn’t allow tile flipping in affine BGs whereas the VB does; on the VB we always want -mRtf, which is the default.
Edit: can we have HTML on, please?
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.
This reply was modified 16 years, 2 months ago by dasi.