Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 18:03:46 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Entiers de 4 octets - Manipuler des grands nombres en Axe  (Read 329 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Torio
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 18 May, 2013, 18:43:54
Date Registered: 24 January, 2012, 18:53:25
Location: France
Posts: 82

Topic starter
Total Post Ratings: +22

View Profile
« on: 24 January, 2012, 19:12:27 »
0

Bonjour, je voulais savoir s'il était possible de travailler avec des entiers de 4 octets, parce qu'en Axe les variables ne font que 2 octets de large.
Je voudrais pouvoir faire des divisions et des modulos avec ces entiers.

Merci !
Logged

Sorry about my mistakes, I'm French.

Projects :  Pokemon TI-89 | Ti-Tank
kindermoumoute
LV8 Addict (Next: 1000)
********
Offline Offline

Last Login: 20 May, 2013, 23:02:59
Date Registered: 15 May, 2010, 17:53:56
Posts: 836


Total Post Ratings: +51

View Profile
« Reply #1 on: 24 January, 2012, 19:28:09 »
0

Il n'existe pas de variables 32 bits en Axe, mais il y a les floats (9 octets). Je n'ai jamais essayé de les utiliser, mais en gros il faut pointer 9 octets d'utilisables :

1
2
:Buff(9)=>Pic0
:100000000=>float{Pic0}
(pas testé)

J'avais déjà entendu parlé de fonction faites pour utiliser des variables 32 bits, mais je retrouve pas. Au pire cela reste envisageable à faire.
Logged

Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 17:44:30
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2052


Total Post Ratings: +256

View Profile
« Reply #2 on: 24 January, 2012, 19:37:39 »
0

Ici, tu disposes d'une librairie de routines pour realiser des additions et soustractions sur des entiers de 3 ou 4 octets, et tu peux aussi les afficher Cheesy
Pour les divisions et les modulos, ça risque d'être plus difficile Undecided
« Last Edit: 24 January, 2012, 19:37:48 by Hayleia » Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
kindermoumoute
LV8 Addict (Next: 1000)
********
Offline Offline

Last Login: 20 May, 2013, 23:02:59
Date Registered: 15 May, 2010, 17:53:56
Posts: 836


Total Post Ratings: +51

View Profile
« Reply #3 on: 24 January, 2012, 19:46:53 »
0

C'est exactement ça que je cherchais ! Wink
Logged

Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%
Torio
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 18 May, 2013, 18:43:54
Date Registered: 24 January, 2012, 18:53:25
Location: France
Posts: 82

Topic starter
Total Post Ratings: +22

View Profile
« Reply #4 on: 24 January, 2012, 19:51:39 »
0

Oui j'avais vu mais j'aimerais surtout la division, mais apparement ça m'a l'air extrêmement compliqué...

Quant au modulo, je pensais faire :


1
2
3
.Pour faire AB^P

A^P*(65536^P)+(B^P)->C

Et ton code ne compile pas malheureusement, kindermoumoute.
« Last Edit: 24 January, 2012, 19:55:20 by Torio » Logged

Sorry about my mistakes, I'm French.

Projects :  Pokemon TI-89 | Ti-Tank
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.28 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.