Author Topic: Axe ClrDraw  (Read 4626 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Axe ClrDraw
« 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
« Last Edit: April 18, 2011, 10:31:12 am by Scout »

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe ClrDraw
« Reply #1 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. 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)
« Last Edit: April 18, 2011, 11:05:44 am by Runer112 »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe ClrDraw
« Reply #2 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. 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.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe ClrDraw
« Reply #3 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

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Axe ClrDraw
« Reply #4 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.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe ClrDraw
« Reply #5 on: April 18, 2011, 03:51:26 pm »
Oh thats great to know! :D

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe ClrDraw
« Reply #6 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!