
My patches just change some $FFFFFFF[F|E] to avoid the 64b bug.
echo "#!PedroM" >> file menu "ls" "ls -h" "cd system" >> file file
PpHd (./61) :
Sent.
Folco (./63) :
Did you built it without the symbolic math engine ?
--- a/src/Misc.asm +++ b/src/Misc.asm @@ -538,37 +538,9 @@ getenv_si: ; Destroy: ; d0-d2/a0 atol: - cmp.b #'0',(a0) - bne.s \start10 - cmp.b #'x',1(a0) - bne.s \start10 - addq.l #2,a0 ; Skip '0x' -\start16: - moveq #0,d0 -\loop moveq #0,d1 ; Read - move.b (a0)+,d1 ; Char - beq.s \end - subi.b #'0',d1 ; From '0' - cmpi.b #9,d1 - bls.s \ok - subi.b #'a'-'0'-10,d1 -\ok lsl.l #4,d0 - add.l d1,d0 - bra.s \loop -\end: rts - -\start10: - moveq #0,d0 -\loop10 moveq #0,d1 ; Read - move.b (a0)+,d1 ; Char - beq.s \end - subi.b #'0',d1 ; From '0' - move.l d0,d2 - lsl.l #3,d0 - add.l d2,d0 - add.l d2,d0 ; x10 - add.l d1,d0 - bra.s \loop10 + clr.w d0 + suba.l a1,a1 + jmp strtol ;short CU_stop (void); ; Destroy only d0
Recv 08A2 0006 Send 9856 0000 Recv 9806 000B Send 9856 0000 Send 9815 000E
Recv 08A2 0006 Send 9856 0000 Send 9806 000B Recv 0856 0000 Recv 0809 0000 Send 9856 0000 Send 9815 0020 Recv 0856 0000 Send 9892 0000
Recv 08A2 0006 : PC->TI REQ Send 9856 0000 : TI->PC ACQ Recv 9806 000B : PC->TI VAR Send 9856 0000 : TI->PC ACQ Send 9815 000E : TI->PC DATA
Recv 08A2 0006 : PC->TI REQ Send 9856 0000 : TI->PC ACQ Send 9806 000B : TI->PC VAR Recv 0856 0000 : PC->TI ACQ Recv 0809 0000 : PC->TI CTS Send 9856 0000 : TI->PC ACQ Send 9815 0020 : TI->PC DATA Recv 0856 0000 : PC->TI ACQ Send 9892 0000 : TI->PC EOT
Data section is made up of several blocks which take the following format (always [b]18 bytes long[/b]) for the directory listing: Offset Length Description 0 8 bytes Variable name padded with NULL chars if necessary. 8 1 byte Variable type ID. 9 1 byte Variable attribute: 00h = unlocked, 01h = locked, 03 = archived. 10 4 bytes If folders are listed (phase 1), this field contains the number of variables in this folder. If variables are listed (phase 2), this field contains the length, in bytes, of the variable data for this variable without the extra four bytes at the beginning of the data packet. [b]14 8 bytes (V200 only) These eight bytes always have a value of 0.[/b]
uint8_t extra = (handle->model == CALC_V200) ? 8 : 0;
Lionel Debroux (./74) :
Well, I don't have either a V200 or a 89T... and TI-Connect won't handle VTI and TIEmu links, so I'm afraid I can't help
--- a/src/Link.asm +++ b/src/Link.asm @@ -809,6 +809,11 @@ TranslatePacket ; Translate Packet \DirLoop move.l a0,d0 beq.s \DirDone add.w #8+2+4,d4 ; One more file + ifd V200 ; V200 has eight bytes which always have a value of 0 at the end of a directory + addq.w #8,d4 ; One more file + clr.l -(a7) ; Make it nulls + clr.l -(a7) ; Make it nulls + endif lea -(8+2+4)(a7),a7 ; Alloca on the stack move.l SYM_ENTRY.name(a0),(a7) ; Copy SYM NAME (1) move.l SYM_ENTRY.name+4(a0),4(a7) ; Copy SYM NAME (2) @@ -841,6 +846,12 @@ TranslatePacket ; Translate Packet \DirDone ; First Entry is the folder itself if isn't home move.l a3,d0 ; Check if it is home beq.s \NoAddFolderEntry + add.w #8+2+4,d4 ; One more file + ifd V200 ; V200 has eight bytes which always have a value of 0 at the end of a directory + addq.w #8,d4 ; One more file + clr -(a7) + clr -(a7) + endif clr.l -(a7) ; Len = 0 move.w #$1F00,-(a7) ; Type & Flags subq.l #8,a7 ; Alloca on the stack @@ -851,7 +862,6 @@ TranslatePacket ; Translate Packet moveq #8-1,d0 \FoldNameLoop move.b (a3)+,(a0)+ ; Copy 8 chars dbf d0,\FoldNameLoop ; Name - add.w #8+2+4,d4 ; One more file \NoAddFolderEntry ; FreeHandle(PACKET_DATA_HD) jsr FreePacket
PpHd (./73) :
I heard that your calculator was detected as a TI-89 titanium.
A Directory Listing or a requesting of a variable. Probably a directory listing of the Home directory due to the size (and PedroM answer of 0x20 bytes = 4 null first bytes + 2*14 bytes for each folder - main and system). I don't see anything wrong in it.
Folco (./78) :
Directory listing, Ti-Connect just displays the list of the directories (indeed, I had just main & system). The calc browsing seems to work fine. This is the device and system detection which fails (first log I gave to you).
Folco (./78) :A Directory Listing or a requesting of a variable. Probably a directory listing of the Home directory due to the size (and PedroM answer of 0x20 bytes = 4 null first bytes + 2*14 bytes for each folder - main and system). I don't see anything wrong in it.
Directory listing, Ti-Connect just displays the list of the directories (indeed, I had just main & system).
The calc browsing seems to work fine. This is the device and system detection which fails (first log I gave to you).
Recv 08A2 0006 Send 9856 0000 Send 9806 000B Recv 0856 0000 Recv 0809 0000
Send 9856 0000 Sebd 9815 0020 Recv 0856 0000 Send 9892 0000
I mean that if you want to echo more info, using a file should be better than echo on the screen
I mean that if you want to echo more info, using a file should be better than echo on the screen
Recv 08A2 0006 : PC->TI: Silent - Request Variable (REQ) ==> Which one? Send 9856 0000 : TI->PC: ACK Send 9806 000B : TI->PC: Variable Header (VAR) of the requested variable Recv 0856 0000 : PC->TI ACK Recv 0809 0000 : PC->TI Ok to send the data (CTS) <== ERROR: Link format ==> <== ERROR: Link format ==> Send 9856 0000 : TI->PC ACK Send 9815 0020 : TI->PC Data associated to the requested variable (XDP). Recv 0856 0000 : PC->TI ACK Send 9892 0000 : TI->PC END OF TRANSMISSION
Requesting ID list Indeed, the request is as if the TI requested the 'IDLIST' variable: Ty=22 and Nl=00. This request works only with upgraded calculator (check if TI has been upgraded before).
The protocol for checking whether the calculator AMS has been upgraded is described below. REQ special: 00 68 00 00. ACK: either 98 56 00 10 (not upgraded), either 98 56 10 04 (upgraded).
Folco (./83) :I mean that if you want to echo more info, using a file should be better than echo on the screen
FYI, Ti-Connects allows to create a folder on the calc ! And it works ! But PedroM displays a lot of info, I can't read all. Ti-Connect seems to send some commands that are printed in the command line and executed by PedroM, but it's very quick, so I can't read what appears, and it overwrites the debug link informations...
Creating a folder In fact, Ti-Connect use an ersatz for this: it sends an empy var with full path like 'new_fld\a1234567' and next delete variable.
Folco (./82) :
cross -> I mean that if you want to echo more info, using a file should be better than echo on the screen
../bin/flashos/flashos.a: Warning: Section size of 24626 bytes is larger than requested size of 24576. ../bin/flashos/flashos.a: Warning: Section size of 24638 bytes is larger than requested size of 24576.