π
<-

[CE Projet ASM]Lecteur de texte avec caractères spéciaux

Assembleur, Axe, C/C++, ICE...

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby y0ann » 19 May 2016, 15:25

Titres et Scrollbar : :D :D
Image
User avatar
y0ann
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 64%
 
Posts: 19
Joined: 04 May 2016, 21:56
Gender: Male
Calculator(s):
MyCalcs profile
Class: GEII

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby MateoConLechuga » 19 May 2016, 22:56

I have updated the fileio library to version 2.0, which includes the ability to search for files that begin with a certain sequence of bytes. This will probably eliminate the need for slots, and also help with creation :) Here's the relevant function:

Code: Select all
ti_Detect(void **search_pos, const char *search_string);


You can find that demo_2 of the fileio demos shows you how to use it :) Enjoy, and great work so far!
User avatar
MateoConLechugaVIP++
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 60.5%
 
Posts: 50
Joined: 12 Oct 2015, 21:56
Gender: Male
Calculator(s):
MyCalcs profile
GitHub: mateoconlechuga

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby y0ann » 19 May 2016, 23:12

Great, thank you very much ! :D
I'll look at it. :)
User avatar
y0ann
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 64%
 
Posts: 19
Joined: 04 May 2016, 21:56
Gender: Male
Calculator(s):
MyCalcs profile
Class: GEII

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby Wistaro » 19 May 2016, 23:23

Great project. Well done Yoan! I'm waiting for the first release ;)
Nouveau sur le site, ClaudeBot [spider] ? Avant de poster sur le chat et sur le forum, n'oublie pas de lire les règles. En cas de problème, tu peux m'envoyer un message, je réponds rapidement.

Liens utiles:
Image
Découvre mes programmes et mon site!
User avatar
WistaroSuper Modo
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 88.4%
 
Posts: 3182
Images: 37
Joined: 25 Feb 2013, 16:21
Location: Toulouse
Gender: Male
Calculator(s):
MyCalcs profile
Class: Ingénieur en électronique
YouTube: Wistaro
Twitter: Wistaro
GitHub: Wistaro

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby DoOmnimaga » 20 May 2016, 04:25

Very nice work y0ann :)
Image Image Image
User avatar
DoOmnimagaPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 8.1%
 
Posts: 683
Images: 25
Joined: 21 Feb 2012, 12:04
Location: Quebec, Canada
Gender: Male
Calculator(s):
MyCalcs profile
Class: 11eme annee scolaire termine
YouTube: DJOmnimaga
Twitter: DJOmnimaga
Facebook: dreamofomnimaga.page

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby Ti64CLi++ » 20 May 2016, 14:28

Comment s'utilise la fonction ti_Detect(void **search_pos, const char *search_string)?
A quoi sert la variable search_pos?
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.5%
 
Posts: 3446
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby grosged » 20 May 2016, 14:30

Chouette programme :=):
User avatar
grosgedVIP++
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 30.2%
 
Posts: 770
Images: 75
Joined: 14 Sep 2011, 12:29
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby MateoConLechuga » 20 May 2016, 16:05

The ti_Detect routine has two arguments: search_pos and search_string. search_pos is a pointer to the current place you are located in the variable allocation table. When you pass it to ti_Detect, it is modified to point to the next place to start searching, so that way you can find every variable. search_string is the sequence of bytes to search for. For example, let's say your custom AppVars start with 0xAA,0xBB,0xCC. You can find every single AppVar that starts with this sequence by doing something like this:

Code: Select all
uint8_t *search_pos = NULL;
const char search_string[] = { 0xAA, 0xBB, 0xCC, 0x00 };
char *name_ptr;

while((name_ptr = ti_Detect( &search_pos, search_string )) != NULL) {
        ...Do something with the name_ptr...
}
User avatar
MateoConLechugaVIP++
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 60.5%
 
Posts: 50
Joined: 12 Oct 2015, 21:56
Gender: Male
Calculator(s):
MyCalcs profile
GitHub: mateoconlechuga

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby Flip » 20 May 2016, 16:56

I can not wait to see the release... :D
Image

Universalis, un de mes meilleurs programmes TI 83 PCE

Avancement du projet Color Switch:
100%

feature en cours:
embellissement du gameplay
N'hésitez pas à télécharger, ça fait toujours plaisir ;) : archives_voir.php?id=873936
User avatar
FlipProgrammeur
Niveau 10: GR (Guide de Référence)
Niveau 10: GR (Guide de Référence)
Level up: 81.9%
 
Posts: 77
Images: 0
Joined: 03 Nov 2015, 10:57
Location: Toulouse, France
Gender: Male
Calculator(s):
MyCalcs profile
Class: PCSI 1ere année
Facebook: profile.php?id=100010687478140

Re: [CE Projet ASM]Lecteur de texte avec caractères spéciaux

Unread postby y0ann » 21 May 2016, 00:06

Release 0.4 online, pensez à updater vos librairies C !

http://goo.gl/AdQrhw

Je suis pas très frais après ma journée si quelqu'un découvre un bug je corrigerai ça au plus vite. :p
User avatar
y0ann
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 64%
 
Posts: 19
Joined: 04 May 2016, 21:56
Gender: Male
Calculator(s):
MyCalcs profile
Class: GEII

PreviousNext

Return to Langages alternatifs

Who is online

Users browsing this forum: ClaudeBot [spider] and 10 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Reprise de ton ancienne fx-92 Collège ou Graph 25/35/90 à 3€ peu importe son état. Même non fonctionnelle et donc invendable, même ancienne Graph 35 non conforme aux programmes (pas de Python), même ancienne Graph 25/35 inutilisable aux examens (pas de mode examen) et donc invendable. Etiquette de retour fournie, pas de frais de port à payer.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1033 utilisateurs:
>1010 invités
>14 membres
>9 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)