0 Members and 1 Guest are viewing this topic.
In other news, Frey continues kicking unprecedented levels of ass.
I have lots of those bugs. Sometimes, I unarchive the source, re-compile (ERR: Out of mem) then re-archive it and re-compile and everything works
;###############################;validate an app;input: b = page; flash = unlockedvalidateApp: in a, (02) rlca ld de, $1F18 ld a, $15 jr nc, havePageAndAddress ld de, $1E50 in a, ($21) ;I know rrca ld a, $29 jr nc, havePageAndAddress ld a, $69havePageAndAddress: push af sub b add a, a ld h, 0 ld l, a add hl, de push hl bcall(_getCertificateStart) pop de add hl, de pop bc in a, (02) rlca jr c, not83PBE ld b, $1E-$15not83PBE: ld a, b add a, $15 ld b, a bcall(_loadCIndPaged) ld a, c ld c, b and $80 ld b, a ld a, c ex de, hl push af bcall(_writeAByte) pop af ld b, 00 bcall(_writeAByte) ret
Quote from: Deep Thought on April 09, 2011, 08:31:16 pmQuote from: ztrumpet on April 09, 2011, 05:15:43 pmCan we have a feature like "Zeros()," but for any data. For instance, something like this:Command(1,12) would be the same as [010101010101010101010101]Command([56],4) would be the same as [56565656]Command(127,6) would be the same as Data(127,127,127,127,127,127)Potentially, this command could even be used for repeating sets of data. For instance:Command([010203],12) would be the same as [010203010203010203010203]Command("Text"[00],15) would be the same as "Text"[00]"Text"[00]"Text"[00]So, what do you think? Could this be a command? I think it's a good idea, to avoid situations like this. I really like that idea. What about changing Zeros( (det() to something more universal?I would suggest changing the token replacement to Block(). Feeding 1 argument would create a block of the specified size filled with zeroes. Feeding 2 arguments would create a block of the specified size filled with a specified value. Maybe you could even add a Block()r command for creating a block filled with a specified word while you're at it, although this probably isn't as necessary as a normal byte-filling block command.
Quote from: ztrumpet on April 09, 2011, 05:15:43 pmCan we have a feature like "Zeros()," but for any data. For instance, something like this:Command(1,12) would be the same as [010101010101010101010101]Command([56],4) would be the same as [56565656]Command(127,6) would be the same as Data(127,127,127,127,127,127)Potentially, this command could even be used for repeating sets of data. For instance:Command([010203],12) would be the same as [010203010203010203010203]Command("Text"[00],15) would be the same as "Text"[00]"Text"[00]"Text"[00]So, what do you think? Could this be a command? I think it's a good idea, to avoid situations like this. I really like that idea. What about changing Zeros( (det() to something more universal?
Can we have a feature like "Zeros()," but for any data. For instance, something like this:Command(1,12) would be the same as [010101010101010101010101]Command([56],4) would be the same as [56565656]Command(127,6) would be the same as Data(127,127,127,127,127,127)Potentially, this command could even be used for repeating sets of data. For instance:Command([010203],12) would be the same as [010203010203010203010203]Command("Text"[00],15) would be the same as "Text"[00]"Text"[00]"Text"[00]So, what do you think? Could this be a command? I think it's a good idea, to avoid situations like this.