0 Members and 1 Guest are viewing this topic.
Nice, although I think the text is a bit off, though, and there are two black squares at the end of the screenshot. It might be nice if it could be implemented as fake reset in a game
Getcalc(<your var in flash>,Yx){°Yx}r->H{°Yx+2}->A<Number of bytes to copy>->B<Your pointer in RAM>->DAsm(2AC489ED5BBC893AB689ED4BB889EF1750)
He is a routine that Mighty Moose and me made, it allows you to copy data from flash to ram (it uses flashtoram):Code: [Select]Getcalc(<your var in flash>,Yx){°Yx}r->H{°Yx+2}->A<Number of bytes to copy>->B<Your pointer in RAM>->DAsm(2AC489ED5BBC893AB689ED4BB889EF1750)
Getcalc(YourVar,Yx)Copy(Yx,RAMptr,amount)
Well, iirc, you can just do this, since it is valid to use Page-pointer varsity in a Copy instruction:Code: [Select]Getcalc(YourVar,Yx)Copy(Yx,RAMptr,amount)I thnk I used that for TaNF, it's very useful if you want to keep tons of data in Archive but be able to access little parts quickly when needed.
Quote from: Ashbad on June 18, 2011, 07:51:58 amWell, iirc, you can just do this, since it is valid to use Page-pointer varsity in a Copy instruction:Code: [Select]Getcalc(YourVar,Yx)Copy(Yx,RAMptr,amount)I thnk I used that for TaNF, it's very useful if you want to keep tons of data in Archive but be able to access little parts quickly when needed.Does it work when there's a page break?
:Lbl CLR:.Clear a 6*6 spot on both buffers:.r1 is the X coordinate and r2 is the Y coordinate:r1^8:Asm(450421FF07B7CB1CCB1D10FA)→r3:...: ld b, l: ld hl, 0000011111111111b: or a:loop:: rr h: rr l: djnz loop:...:r1/8+(r2*12)→r5:For(r4,0,5):{r4*12+r5→r6+L6}rr∙r3→{r6+L6}rr:{r6+L3}rr∙r3→{r6+L3}rr:End:Return