0 Members and 7 Guests are viewing this topic.
In other news, Frey continues kicking unprecedented levels of ass.
Perhaps a command to check a certain block of memory for variable bytes.Search(PTR to start search,bytes to search for (more than one byte),number of bytes forward to search)return 0 if not found, or offset of first result.Ex: to clarifyin the block 013450AE2345FF000F ,Search(PTR,[AE23],9) returns 3
inData can only check for one byte. Im thinking of a function that can search for more than one. but i do see how that would work.
Lbl SRC-1->r4While r4+1->r4<r3If inData({r4+r1},r2)r4:ReturnEndEnd-1:Return
Another one: for those of us who have assembly programs on calc that do things like invert text, invert the screen, check ram, or what not. Have a command that parses a compiled z80 executable and inserts it into the program.command(assembly program) ; only the source requires the program, not the executable.
Quote from: ACagliano on April 01, 2011, 12:13:39 aminData can only check for one byte. Im thinking of a function that can search for more than one. but i do see how that would work.Something likeCode: [Select]Lbl SRC-1->r4While r4+1->r4<r3If inData({r4+r1},r2)r4:ReturnEndEnd-1:Return(returns -1 if failure)
I think the string equality check command could be used to compare multiple bytes.
Quote from: calc84maniac on April 01, 2011, 12:21:34 amQuote from: ACagliano on April 01, 2011, 12:13:39 aminData can only check for one byte. Im thinking of a function that can search for more than one. but i do see how that would work.Something likeCode: [Select]Lbl SRC-1->r4While r4+1->r4<r3If inData({r4+r1},r2)r4:ReturnEndEnd-1:Return(returns -1 if failure)Calc, where do the variables here come from? Which is the search string and which is the string to search? I may use this.
SirC's flood-filler would probably be easily modifiable to make grayscale.IIRC the Circle() routines are coded in such a way that it is very difficult to make it draw on the back buffer.For For() loops, just use a While loop instead and increment manually, it probably is just as optimized anyway.As for the flickering on the grayscale, I think Deep Thought already mentioned going across the screen by rows instead of columns as per thepenguin77s grayscale tutorial, so I'll just remention that again And now I have something I want to say...People, this has kind of been bugging me. Feature-request-wise, remember that Quigibo is really busy. Complex routines are hard to put in, and most of the time they can easily be written in Axe anyway with a few commands (like the for() and the paint bucket thing). Figure out how to do it yourself; don't just ask for a feature request because you don't want to take the time to code your own routines. Another example: grayscale. Are you really complaining that the shades of gray are too dark/light? It's freaking grayscale on a monochrome screen. Seriously, any asm programmer will tell you that grayscale is a huge pain to program correctly and IMHO we should be grateful that we have it as good as it is. I'm talking to everybody here. I feel like some people are taking Quigibo for granted, and imo something like a paint bucket is in no way really important enough to merit its own command. Something like bit-manipulation, label-addresses or switch-statements or big-endian nibble reads hint hint hint are more appropriate candidates for feature requests. And did someone really ask for multitasking?I guess what I'm really trying to say, is just try and think about what you are asking for before you post, and whether or not it's practical. Then think about how you could code it; a lot of things are not difficult to code by hand anyway. Some languages don't even have for() loops, for example. And when you do post, try to explain what you are talking about. Not everyone knows what the phrase "stateful goto" or "try/catch" means.Sorry to rage like this but I felt the need to say it. No offense to anyone intended. Also I do not want to start any kind of war or fight so if you have a problem with this, rate it down and pm me. Leave it off the forums, thanks