Jump to content

Photo

GCC for the TI


408 replies to this topic

#401 tschak909 OFFLINE  

tschak909

    River Patroller

  • 2,485 posts
  • Location:USA

Posted Fri Aug 10, 2018 3:07 PM

Can somebody run the TST program on this disk, on a real TI and press the following keys, and report the following scancodes?

 

https://drive.google...brCuuK6Wem-PZ7i

 

A

B

C

D

E

F

G

H

 

CTRL-A

CTRL-B

CTRL-C

CTRL-D

CTRL-E

CTRL-F

CTRL-G

CTRL-H

 

FCTN-A

FCTN-B

FCTN-C

FCTN-D

FCTN-E

FCTN-F 

 

I am seeing values back from my test harness on Classic99 that don't match up to the documentation I am seeing (ctrl keys seem to have bit 8 set.)

 

Also, is it possible by utilizing kscan or manually scanning the keyboard to get e.g. a shift-CTRL-<key> combination?

 

-Thom



#402 arcadeshopper OFFLINE  

arcadeshopper

    River Patroller

  • 3,496 posts
  • Location:Portland, Oregon USA

Posted Sat Aug 11, 2018 11:10 AM

Ok running it.

 

i get the screen, what is supposed to happen when I hit a key?  just seems to sit there 

 

nevermind i got the test program up :) 

 

assume its 0xXX and I'm listing the XX

 

A 41

B 42

C 43

D 44

E 45

F 46

G 47

H 48

CTRL-A 81

CTRL-B 82

CTRL-C 83

CTRL-D 84

CTRL-E 85

CTRL-F 86

CTRL-G 87

CTRL-H 88

 

FCTN-A 7c

FCTN-B be

FCTN-C 60

FCTN-D 9

FCTN-E b

FCTN-F 7b

 

Greg



#403 tschak909 OFFLINE  

tschak909

    River Patroller

  • 2,485 posts
  • Location:USA

Posted Sat Aug 11, 2018 11:38 AM

ok, so that matches up. looks like libti99/tms9900-gcc does its own little munging of the CTRL and FCTN keys, but it's consistent, so good. Thanks!

 

I've got a preliminary key mapping in PLATOTerm now, I just need to get some serial stuff working..

 

-Thom



#404 tschak909 OFFLINE  

tschak909

    River Patroller

  • 2,485 posts
  • Location:USA

Posted Sat Aug 11, 2018 2:08 PM

I have grafted basic tipi support into PLATOTerm, code is here: http://github.com/ts...909/platoterm99

 

But, now it seems I may be running into memory collisions, because the program is crashing unstably, regardless of whether the I/O routines are called, or not.

 

can somebody look and see what I may be doing wrong?

 

-Thom



#405 TheBF OFFLINE  

TheBF

    Dragonstomper

  • 640 posts
  • Location:The Great White North

Posted Sat Aug 11, 2018 3:25 PM

I have grafted basic tipi support into PLATOTerm, code is here: http://github.com/ts...909/platoterm99

 

But, now it seems I may be running into memory collisions, because the program is crashing unstably, regardless of whether the I/O routines are called, or not.

 

can somebody look and see what I may be doing wrong?

 

-Thom

 

How big is the total binary?



#406 tschak909 OFFLINE  

tschak909

    River Patroller

  • 2,485 posts
  • Location:USA

Posted Sat Aug 11, 2018 3:43 PM

 
How big is the total binary?

8320 + 7680 at present.

Sent from my SM-G920F using Tapatalk

#407 TheBF OFFLINE  

TheBF

    Dragonstomper

  • 640 posts
  • Location:The Great White North

Posted Sat Aug 11, 2018 8:47 PM

Ok so there is lots of room in the expansion memory card for that.



#408 tschak909 OFFLINE  

tschak909

    River Patroller

  • 2,485 posts
  • Location:USA

Posted Sat Aug 11, 2018 8:54 PM

Yeah, that's what I thought, current linker config plops the TEXT segment at $A000, which puts it square at the start of expansion himem, while DATA gets pointed to $2000, which expansion lomem... I'm at a loss...

 

-Thom



#409 TheBF OFFLINE  

TheBF

    Dragonstomper

  • 640 posts
  • Location:The Great White North

Posted Sat Aug 11, 2018 9:49 PM

Good thing you are using a "portable" language.  :)

 

It's never as simple as language designers would have us believe.

 

9900 is pretty fussy about word alignment. Since your code was written for 8-bitters before,

is there any possibility that some code is not falling in aligned addresses?

Pure speculation here.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users