* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Calculator Strange Behavior  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.

Offline ACagliano

  • Full User
  • Join Date: Sep 2015
  • Location: New York, NY
  • Posts: 47
  • Post Rating Ratio: +2/-0
    • acagliano
    • Anthony Cagliano
    • @@ACagliano
    • ClrHome Productions
  • Gender: Male
Calculator Strange Behavior
« on: January 20, 2016, 01:46:01 am »
For a while, I have been working on a Yatzee game for the calculator. Testing it in the emulator produced some weird results, namely graphics issues, and crashes. Upon most careful observation, I noticed that at some point, the value of HL was not changing. Even an instruction like ld hl,Address would leave HL unchanged and pointing to $0000. This was causing a great deal of other issues, including executing from that address and writing to it. At one point, this even caused the program to execute my jmptbl label as code, not as data.

Thinking that this might be an emulator issue, against my better judgement I decided to run the program on my calculator (yes, I do dumb things sometimes). Ever since then, I have had weird issues with sending files to and from my calculator. It worked once more since, but every other time, sending a program or app of any kind yields "Serious communication error has occurred" in TI Data Editor. The calculator shows up in the aforementioned program, but I cannot view anything on the device or send a file to it. TILP cannot even detect the calculator present. Using the TI-OS Restore program works fine to send a new OS to the calculator, but my connectivity issues persist.

What the heck is going on? Could I have damaged something else critical to the transfer? Is my computer's port not working? The calculators? But I would think that a hardware issue would mean I can't send a new OS either.

I've enclosed the program I ran on the calc here.


  • Calculators owned: TI-84+ SE

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18795
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Calculator Strange Behavior
« Reply #1 on: January 20, 2016, 03:16:43 am »
Hm strange. I don't know ASM, but could you have hit the flash memory or changed some ports by accident? I also forgot if there are any program that can check if your certificate is still valid.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline ACagliano

  • Full User
  • Join Date: Sep 2015
  • Location: New York, NY
  • Posts: 47
  • Post Rating Ratio: +2/-0
    • acagliano
    • Anthony Cagliano
    • @@ACagliano
    • ClrHome Productions
  • Gender: Male
Re: Calculator Strange Behavior
« Reply #2 on: January 20, 2016, 05:25:32 am »
If any of those are true, what steps can I take to fix it? A full reset/OS reinstall isnt correcting it.
  • Calculators owned: TI-84+ SE

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18795
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Calculator Strange Behavior
« Reply #3 on: January 20, 2016, 09:06:31 pm »
Could you share the source code of your prigram? That said, not many people on CW do ASM so it might be better to ask on multiple forums. Maybe @tr1p1ea might be able to help? I hope that your calculator is safe, though.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline tr1p1ea

  • Full User
  • Join Date: Feb 2015
  • Location:
  • Posts: 262
  • Post Rating Ratio: +4/-1
Re: Calculator Strange Behavior
« Reply #4 on: January 20, 2016, 09:11:05 pm »
I was wondering how you were coming to the conclusion regarding HL=$0000? Are you using a debugger (which emulator if so)?

Also do you utilise any interrupts in your program?

I'd be happy to take a look for you.

(Also love Yatzee :)).

Offline ACagliano

  • Full User
  • Join Date: Sep 2015
  • Location: New York, NY
  • Posts: 47
  • Post Rating Ratio: +2/-0
    • acagliano
    • Anthony Cagliano
    • @@ACagliano
    • ClrHome Productions
  • Gender: Male
Re: Calculator Strange Behavior
« Reply #5 on: January 21, 2016, 12:18:58 am »
I was wondering how you were coming to the conclusion regarding HL=$0000? Are you using a debugger (which emulator if so)?

Also do you utilise any interrupts in your program?

I'd be happy to take a look for you.

(Also love Yatzee :)).

Debugger, Windows version of WabbitEmu, run via Wine on OSX. I had the debugger up and noticed HL = $0000 and not changing.
No interrupts occur in the program. The source is here: http://pastebin.com/F4NG7Tgf
  • Calculators owned: TI-84+ SE

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18795
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Calculator Strange Behavior
« Reply #6 on: January 26, 2016, 07:28:44 am »
Oh, by the way you know that WabbitEmu emulation is not as accurate as TilEm and jsTIfied, right? Because if you mostly test on WabbitEmu and take its emulation behavior for granted, then that could explain why you have troubles running your game on a real calculator. The emulator usually does the job well, but it's always better to try in multiple emulators from time to time, in case.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games