199Fermer201
Lionel DebrouxLe 01/10/2009 à 17:01
PedroM has no problem with being sent an unarchived ASM program (vartype = 0x21), but it doesn't like the exact same archived ASM program (vartype = 0x27).
The change in vartype value is due to send_var() in calc_89.c of libticalcs:
switch (entry->attr) 
{
	//case ATTRB_NONE:     vartype = TI89_BKUP; break;
	case ATTRB_LOCKED:   vartype = 0x26; break;
	case ATTRB_PROTECTED:
	case ATTRB_ARCHIVED: vartype = 0x27; break;
}

TRYF(ti89_send_RTS(entry->size, vartype, varname));



Looking at Link.asm in PedroM, PedroM doesn't like vartypes 0x26 and 0x27 simply because they aren't in the list of supported file types:
SupportedFileType_LIST:
	dc.w	4,6,$a,$b,$c,$d,$e,$10,$12,$13,$14,$1C,$21,0

(on a side note, these vartypes aren't documented in the LIO_CTX page)