Quantcast
Channel: Cemetech
Viewing all articles
Browse latest Browse all 75370

z80 Assembly :: RE: loop.asm Doesn't Loop

$
0
0
Author: chickendude
Posted: 03 Apr 2013 05:26:53 am (GMT -5)

In a lot of cases it can be better to write your own code (or use/modify existing routines written by the community). They'll generally be (muuuuch) faster, will be more suited to what you're doing, you know exactly what it's doing (and what registers it uses/destroys), and you don't have to worry about the code changing from one OS version to another (not that this happens very often). Sometimes it's just not worth the size, for example a text routine, and sometimes it's just not worth the effort, like writing your own routines to search the VAT/create variables. I don't know what most of the BCALLs do as i rarely use them Wink

And of course if you ever have questions or trouble with a routine you're trying to write, you know where to ask for help/advice!

And Kerm's point wasn't specifically about knowing which BCALLs modify which registers, but rather about the fact that you push and pop the values of AF and DE when you don't use them in your code, so there's no need to save them. Smile


Viewing all articles
Browse latest Browse all 75370

Trending Articles