Calculator Community > The Axe Parser Project
ASM Routines - Source Code
Quigibo:
--- Quote from: SirCmpwn on April 20, 2010, 11:21:57 am ---Question:
If you have fastCopy impemented, then why does CopyBuffer use GrBufCpy?
--- End quote ---
What is called "Fastcopy" in the routines is actually safe copy. Copybuffer was what I used to use but I don't use it anymore. I'm just keeping it there becasue in the future there will be more settings on how to optimize the code for efficiency on the size-speed spectrum. Not all the routines in the list are actually used.
SirCmpwn:
Oh, I understand more now. Thanks for the clarification.
Quigibo:
These routines might actually need some optimizing. I couldn't find an algorithm for signed division anywhere on the internet, so I had to do it the really bulky/lazy way with taking the absolute value and then adding the sign at the end. The line drawing I just translated the pseudo-code from Wikipedia directly into assembly, but there might be a better way for that as well.
_player1537:
Quigibo, could you help me understand your "getkey(x)" command. I found it in the routines, and skipped the "jp" and ".db" parts, but I don't understand what H and L mean in the routine. Could you help?
Quigibo:
That one is actually really complicated, the Parser itself uses an algorithm to determine what to make H and L. That's why I require the number for direct keys to be constant instead of variable becasue it would be way too slow to have to convert it each time its trying to detect a key.
Anyway, H is the key group and L is the bit inverse of the key code I think. There's a chart on day 22 of the learn z80 in 28 days tutorial you can use for reference.
By the way, I haven't updated the list with new commands since the last few versions. If anyone wants any just ask and I'll post them up here.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version