Omnimaga

Calculator Community => Major Community Projects => The Axe Parser Project => Topic started by: Munchor on April 18, 2011, 06:18:31 am

Title: Axe ClrDraw
Post by: Munchor on April 18, 2011, 06:18:31 am
This topic is actually aimed at Quigibo: what BCall/Code do you use to clear the screen with ClrDraw?

I was told you probably use B_CALL _ClrScrnFull and not ClrLCDFull.

I'm quite curious, thanks.

EDIT: What's the Assembly code for Fix 5 and Fix 4 too? Thanks
Title: Re: Axe ClrDraw
Post by: Runer112 on April 18, 2011, 11:02:08 am
If you want to examine the source code for Axe routines, I suggest looking at the Commands.inc file found in the Developers folder of Axe releases. That file lists the source for every Axe command available. However, it may be difficult to determine which commands correspond to which routines, as they aren't named according to their Axe tokens. To determine which routines correspond to which Axe tokens, you may want to look at this (http://ourl.ca/8693/162391). It lists technical details about every routine in Commands.inc, including which Axe tokens they correspond to. So to find the ClrDraw routine, you would search my file for "ClrDraw" to find the routine it corresponds to, and then search Commands.inc for the routine name you just found to find the code for the routine.


EDIT: Oops, forgot to actually answer your questions:
Title: Re: Axe ClrDraw
Post by: Munchor on April 18, 2011, 11:04:55 am
If you want to examine the source code for Axe routines, I suggest looking at the Commands.inc file found in the Developers folder of Axe releases. That file lists the source for every Axe command available. However, it may be difficult to determine which commands correspond to which routines, as they aren't named according to their Axe tokens. To determine which routines correspond to which Axe tokens, you may want to look at this (http://ourl.ca/8693/162391). It lists technical details about every routine in Commands.inc, including which Axe tokens they correspond to. So to find the ClrDraw routine, you would search my file for "ClrDraw" to find the routine it corresponds to, and then search Commands.inc for the routine name you just found to find the code for the routine.


EDIT: Oops, forgot to actually answer your questions:
  • ClrDraw: B_CALL(_GrBufClr)
  • Fix 5: set   7,(iy+20)
  • Fix 4: res   7,(iy+20)

Thanks a lot!! I didn't know It was so open source :D thanks thanks will do right away.
Title: Re: Axe ClrDraw
Post by: Builderboy on April 18, 2011, 11:13:28 am
It uses a BCALL? I thought it used some form of asm to make it really fast? o.O
Title: Re: Axe ClrDraw
Post by: Quigibo on April 18, 2011, 03:44:22 pm
No, I use the bcall because its small.  Its easy to write in Axe though, its just:

:0->{L6}r
:Fill(L6+1,766)


So you can make it fast yourself if your balance is more towards speed instead of size.
Title: Re: Axe ClrDraw
Post by: Builderboy on April 18, 2011, 03:51:26 pm
Oh thats great to know! :D
Title: Re: Axe ClrDraw
Post by: Munchor on April 18, 2011, 03:57:14 pm
No, I use the bcall because its small.  Its easy to write in Axe though, its just:

:0->{L6}r
:Fill(L6+1,766)


So you can make it fast yourself if your balance is more towards speed instead of size.

Thanks a lot!