Author Topic: Crabcake  (Read 18883 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake
« Reply #60 on: June 24, 2011, 09:02:13 pm »
Sorry, hot_dog, missed your request.

If you have specific font hooks installed, (most notably zStart with version less than ~6)
Code: [Select]
call crabCakeInstall

ld a, 'A'
bcall(_putC)
Will crash the calculator.

If you want to fix the problem, here is what I recommend.
Code: [Select]

crabCakeInstall:
ld hl, (flags + $34) ;iy + 34h
ld (nameBuff), hl
ld a, (flags + $36) ;iy + 36h
ld (nameBuff+2), a
ld a, (flags + $3A) ;iy + 3Ah
ld (nameBuff+3), a
xor a
ld (iy + $34), a
ld (iy + $35), a
ld (iy + $36), a
ld (iy + $3A), a

crabCakeUninstall:
ld hl, (nameBuff)
ld (flags + $34), hl
ld a, (nameBuff+2)
ld (flags + $36), a
ld a, (namebuff+3)
ld (flags + $3A), a

NameBuff is the area used when you type in the name of something, for instance, making a new basic program or RCLing something. Since I doubt any Axe programmer would ever use this area, or even know about it. The flags should be save there.

Oh yeah, I forgot that I only need to empty the flags.  I looked at all the hooks and thought "How on earth am I going to have enough RAM to save all these hook states"

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Crabcake
« Reply #61 on: June 24, 2011, 09:04:50 pm »
I think it's more of hooks that are associated with running programs rather than the token hooks that Axe uses.
Oh ok thanks for the info.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Crabcake
« Reply #62 on: October 05, 2011, 11:35:31 pm »
Hot Dog, I've been getting some odd errors with crabcake with the new Axe, so if you have time could you look into it for me?

The program compiles and runs fine, but crashes on exit.
Sometimes Axe throws a "Token" error, but error goes away eventually.

Thanks in advance ^^
In-progress: Graviter (...)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Crabcake
« Reply #63 on: October 05, 2011, 11:40:30 pm »
Are you using AxesOn/Off with the r?  I'm using it sans r and it's working fine for me (axe 1.0.5)
Vy'o'us pleorsdti thl'e gjaemue

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Crabcake
« Reply #64 on: October 06, 2011, 12:21:37 am »
No such luck :/
In-progress: Graviter (...)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake
« Reply #65 on: October 06, 2011, 12:25:37 am »
Hot Dog, I've been getting some odd errors with crabcake with the new Axe, so if you have time could you look into it for me?

The program compiles and runs fine, but crashes on exit.
Sometimes Axe throws a "Token" error, but error goes away eventually.

Thanks in advance ^^

It would help if I could have a go at the program you're creating, along with some more information.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Crabcake
« Reply #66 on: October 06, 2011, 12:39:51 am »
Compile AGRAV; tell me if there's anything else you need
Thanks ^^
In-progress: Graviter (...)

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Crabcake
« Reply #67 on: October 09, 2011, 12:28:43 am »
bump - have you found any problems? (Not rushing you or anything :P)
« Last Edit: October 09, 2011, 12:28:54 am by leafiness0 »
In-progress: Graviter (...)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake
« Reply #68 on: October 15, 2011, 02:08:05 pm »
bump - have you found any problems? (Not rushing you or anything :P)

Wow...I got distracted, especially since my computer got corrupted.  Thanks for reminding me ;D

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake
« Reply #69 on: October 15, 2011, 03:12:50 pm »
leafiness0, have you tried making sure that AxesOffr is the absolute last line that gets executed, no matter what?

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Crabcake
« Reply #70 on: October 15, 2011, 03:37:16 pm »
Nope I fixed it ^^ I was using sub() instead of Goto, which was overflowing some random memory stack.
In-progress: Graviter (...)