0 Members and 2 Guests are viewing this topic.
To add a one-byte number to and register pair, you need to use a. (add c,NUM is not a valid instruction)Here's an adaptation from a routine to add a to hl:Code: [Select]ld a,num_to_addadd cld c,aadc a,bsub cld b,aThis takes care of carry and everything.Also, what register you use should be determined by the circumstances (like what routines you will be calling, for example, or what instructions are valid).
ld a,num_to_addadd cld c,aadc a,bsub cld b,a
I finally downloaded this on my real calc. It's awesome
Quote from: Deep Thought on February 15, 2011, 03:54:09 pmI finally downloaded this on my real calc. It's awesome That was late xD, it's awesome, super easy to use and awesome compiler.
Finally I can program ASM offline.
QuoteFinally I can program ASM offline.There are other compilers... For a longer time too, but this one outruns them all!Also, why do you need to be online to program Assembly? Don't you mean in a computer?
Bug report:Mimas sets bufferOnly (in plotFlag3) but doesn't reset it when quitting.
Yeah, I meant on a computer.I used to use Tasm_on_Calc, then OTBP. Both were a bit slow for me.
I'm glad you guys like it. Quote from: Deep Thought on February 17, 2011, 09:58:44 pmBug report:Mimas sets bufferOnly (in plotFlag3) but doesn't reset it when quitting.Are you sure about that? It shouldn't - it never uses that mode. I've just noticed, however, that it leaves the plotLoc flag set. Maybe that's what you're seeing?(I guess I just assumed that plotLoc would be reset by the OS. Turns out that isn't the case. bufferOnly, however, is reset automatically, so even if Mimas did leave that flag set, it wouldn't cause any problems.)I'll fix it as soon as possible, but just out of curiosity, what sort of problems does this cause?