Author Topic: You Can Help Discover More About the TI-8x Calculators!  (Read 9862 times)

0 Members and 2 Guests are viewing this topic.

Offline deeph

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 138
  • Rating: +6/-0
    • View Profile
    • deeph.servhome.org
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #15 on: March 13, 2013, 05:31:31 pm »
I can't be more sure, I've copy-pasted it in TI-Graph Link and just to be sure I've also type it by hand.

And it sure says 69 (it's an old TI 84+ SE, I got it in 2006 if I remenber correctly, and I'm using OS 2.55MP).

But now with this new test it seems ok (no RAM cleared or AAARGH!, it just quits when I press Clear).

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #16 on: March 13, 2013, 10:31:30 pm »
My 84+SE (84/128) works fine with the second test, now. What is the purpose of using im 0? Does it have any practical use? Also, is it properly emulated by emulators?

Quote
Interrupt Mode 0

When an interrupt is requested, the Z80 reads a byte from the data bus and executes it. This can be a single-byte instruction or the start of a multi-byte instruction; for speed reasons commonly RST $nn is used to start processing an interrupt handler due to it's compact encoding.

If no external device is driving the bus, the Z80 will read a garbage value. In systems with pull-up or pull-down resistors on the bus, the value read will be $FF (RST $38) or $00 (NOP) respectively.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #17 on: March 14, 2013, 03:06:20 am »
As far as I know, no emulators emulate this quirk. IM 0 is useless, because the TA3 appears to have pull-up resistors and consequently functions exactly like IM 1. Anyway, here's a new test, one that isn't broken and WON'T CLEAR RAM.
EDIT: There was a typo on the line below that I put spaces into. It read ED5E when it should have read ED56. The assembly listing below had the right hex codes; I made a mistake while copying. This could error cause it to crash or print AAARGH on exit.
Code: [Select]
:AsmPrgm
:F33E20D310
:AFD330D333D336
:210080118181
:0600732310FC
:368221ED9D0E03
:EDB0
:11818221F09D
:0E07EDB0
:3E80ED47ED5EFB
:ED5EFB
:1C7BD311
:DB04E60820F3
: ED56 FB76C9
:41414152474821
:00
:E1ED56FB76
:21D99DEF0A45
:C9
:C3E19D
:08AFD30208FBC9
Assembly!
.org blah
.db blah, blah blah
Start:
di ; F3
ld a, 20h ; 3E20
out (10h), a ; D310
xor a ; AF
out (30h), a ; D330
out (33h), a ; D333
out (36h), a ; D336
ld hl, 8000h ; 210080
ld de, 8181h ; 118181
ld b, 0 ; 0600
_: ld (hl), e ; 73
inc hl ; 23
djnz -_ ; 10FC
ld (hl), 82h ; 3682
ld hl, ISR ; 21ED9D
ld c, ISR2-ISR ; 0E03
ldir ; EDB0
ld de, 8281h ; 118182
ld hl, ISR2 ; 21F09D
ld c, ISR_end-ISR2 ; 0E07
ldir ; EDB0
ld a, 80h ; 3E80
ld i, a ; ED47
im 2 ; ED5E
ei ; FB
loop:
im 2 ; ED5E
ei ; FB
inc e ; 1C
ld a, e ; 7B
out (11h), a ; D311
in a, (4) ; DB04
and 8 ; E608
jr nz, loop ; 20F3
quit:
im 1 ; ED56
ei ; FB
halt ; 76
ret ; C9
strARGH:
.db "AAARGH!", 0 ; 4141415247482100
ARGH:
pop hl ; E1
im 1 ; ED56
ei ; FB
halt ; 76
ld hl, strARGH ; 21D99D
b_call(_PutS) ; EF0A45
ret ; C9
ISR:
jp ARGH ; C3E19D
ISR2:
ex af, af' ; 08
; During the six hours it took me to come up with this, I discovered the right way to acknowledge interrupts:
xor a ; AF
out (2), a ; D302
ex af, af' ; 08
ei ; FB
ret ; C9
isr_end:
This will show garbage on the left side of your screen until you press ON, unless it first says AAARGH! Once again, this has been specifically coded not to clear your RAM. It very carefully differentiates between FF and not FF.
« Last Edit: March 14, 2013, 11:30:37 am by DrDnar »
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #18 on: March 14, 2013, 03:58:21 am »
For me (84+SE: 84/128) it fills up the left side of the screen and then prints AAARGH! I've attached a .8xp file for anyone who doesn't feel like typing all that into the calc and probably typing it in incorrectly ;)

EDIT: And i assumed the "inc a,(4)" was supposed to be "in a,(4)"
« Last Edit: March 14, 2013, 03:59:29 am by chickendude »

Offline deeph

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 138
  • Rating: +6/-0
    • View Profile
    • deeph.servhome.org
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #19 on: March 14, 2013, 06:26:21 am »
Well, this new test says "AAARGH!" now... Strange :/
« Last Edit: March 14, 2013, 06:26:36 am by deeph »

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #20 on: March 14, 2013, 11:14:27 am »
AAARGH! It doesn't do that to me. Mine's a TA3 (port 15=69d/45h).

Also, you're right chickendude about the typo. The hex code by that instruction, however, is correct. Unfortunately, there was a different error in the hex codes; see above for the correction.
« Last Edit: March 14, 2013, 11:31:31 am by DrDnar »
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline deeph

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 138
  • Rating: +6/-0
    • View Profile
    • deeph.servhome.org
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #21 on: March 14, 2013, 11:41:15 am »
It still prints "AAARGH!".

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #22 on: March 17, 2013, 04:55:05 pm »
on the first one, I got 85 and 128. on the second one, I did not get AARGH or anything. it just exited quietly.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #23 on: March 18, 2013, 01:26:48 pm »
When I get home, I'll send them to my calculator and give you information! I'm excited :) I don't like copying all the code. :P
Keep trying.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #24 on: March 18, 2013, 01:44:11 pm »
TI-84 Plus (non SE), rev G, TA3 chip (confirmed by actual inscription on hardware).
First test : 69/128
Second (chickendude's 8xp) : Garbage on the left then argh.
Second (pasted the code in your last post in SourceCoder) : same.

When I fix my 83+ SE I'll tell you what it gives. ;)
« Last Edit: March 18, 2013, 01:48:25 pm by Streetwalker »

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #25 on: March 18, 2013, 10:15:27 pm »
I'm retracting my claims about IM 2. I ported the program to my new TI-84+CSE (which has the same ASIC) and it AAARGHs!s.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: You Can Help Discover More About the TI-8x Calculators!
« Reply #26 on: April 26, 2013, 07:48:52 pm »
Sorry for the semi-necropost.  What exactly is this for?
ld a, 0
ld a, a