Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 June, 2013, 09:08:25 *
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 [2]   Go Down
  Print  
Author Topic: [Axiom] Floating Point Math (and other stuff) -  (Read 2228 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
FinaleTI
Believe in the pony that believes in you!
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 02 June, 2013, 22:43:20
Date Registered: 04 June, 2010, 00:34:27
Location: Alteria
Posts: 1818


Total Post Ratings: +118

View Profile WWW
« Reply #15 on: 26 October, 2011, 20:37:00 »
0

Before a CAS could be made, the following needs to occur:
1) String -> FP number
2) FP number -> String
3) Display FP number on arbitrary display buffer at certain position (pref. #2)
4) Huh?
I have some WIP Axe code to create FP numbers from supplied ASCII strings and store them to OS vars. Currently, scientific notation support is non-existent and it only works for real numbers. I also have a WIP routine for converting FP numbers to ASCII strings for displaying, but only real numbers are supported and scientific notation support is currently iffy at best.
Logged





So, yeah, I have a blog now. Nothing special, just your average ghost town.

Spoiler for Projects:
Spoiler for Pokemon TI:
Map engine is going to be redone from scratch, since I was lacking in organization last time. With a project as big as Pokemon, planning and organization is key, so that will probably be the brunt of the work done on this project for the time being.

Spoiler for Nostalgia:
Being worked on. Nothing really new to put here, but it's being worked on.

Spoiler for Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack.

Spoiler for Nostalgia Origins: Sky's Story:
Currently on hold. I am unsure of whether this will remain DCS7 Hybrid BASIC or if it will use Batlib, Grammer or perhaps Axe.
This may see more progress once a demo of Nostalgia is released.
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 11 June, 2013, 05:10:51
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5688


Total Post Ratings: +360

View Profile
« Reply #16 on: 26 October, 2011, 23:08:01 »
0

I have seen some AXE programmes using strings to export images or tilemaps. How is that possible?
You just have to manipulate the data correctly.  Here's the basic premise:
Set up the string.  This is done in a similar method to setting up a Picture, which I detailed here.
Then loop through the data for the sprite and convert this.  Each nibble (generally) contains one hex character (each byte contains two), so this must be converted to 0-9 or A-F.  Switch the number to its ASCII equivalent, which is shown in this chart:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
L0 equ 030h
L1 equ 031h
L2 equ 032h
L3 equ 033h
L4 equ 034h
L5 equ 035h
L6 equ 036h
L7 equ 037h
L8 equ 038h
L9 equ 039h
LcapA equ 041h
LcapB equ 042h
LcapC equ 043h
LcapD equ 044h
LcapE equ 045h
LcapF equ 046h

So yeah, that's the basic premise.  I hope it helps. Smiley
Logged

jacobly
LV5 Advanced (Next: 300)
*****
Online Online

Last Login: Today at 08:47:24
Date Registered: 09 October, 2011, 01:53:09
Posts: 200

Topic starter
Total Post Ratings: +150

View Profile
« Reply #17 on: 27 October, 2011, 06:18:53 »
0

Bug fix! (See first post)
Also, I started creating a tutorial, so I included that too.
Logged
jacobly
LV5 Advanced (Next: 300)
*****
Online Online

Last Login: Today at 08:47:24
Date Registered: 09 October, 2011, 01:53:09
Posts: 200

Topic starter
Total Post Ratings: +150

View Profile
« Reply #18 on: 28 November, 2011, 05:17:04 »
0

Update. Changes:
solve() becomes solve()ʳ
solve(x) returns a pointer to the floating-point number represented by x.
Examples:
float{solve(Select("varA"))}➔A
float{solve(solve(ᵀ+,Select("varA"),Select("varB")))}➔C
Logged
Taranok
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: Yesterday at 07:56:34
Date Registered: 30 January, 2012, 11:08:57
Posts: 10

Total Post Ratings: 0

View Profile
« Reply #19 on: 30 January, 2012, 11:11:04 »
0

Is it just me or do the code boxes only say "array"?
Logged
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Last Login: Today at 04:18:57
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3785


Total Post Ratings: +614

View Profile
« Reply #20 on: 30 January, 2012, 14:45:09 »
0

I think it depends on the browser. I am using Chrome and it works fine for me Undecided
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


Art_of_camelot
The matrix has you.. ಠ_ಠ
Support Staff
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 08:54:27
Date Registered: 30 August, 2008, 04:55:55
Location: Dr. Light's Laboratory
Posts: 4507


Total Post Ratings: +154

View Profile WWW
« Reply #21 on: 06 February, 2012, 15:43:37 »
0

@Taranok: Welcome here. And yea, I think it's a browser issue. Works fine in Firefox too.
Logged

Projects:
TBA! Coming to an 83+ near you!

NerdTests.com says I'm a Cool Nerd King.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


Taranok
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: Yesterday at 07:56:34
Date Registered: 30 January, 2012, 11:08:57
Posts: 10

Total Post Ratings: 0

View Profile
« Reply #22 on: 27 February, 2012, 08:10:35 »
0

I'm using firefox also...  10.0.2.

The boxes still say array.
Logged
kindermoumoute
LV8 Addict (Next: 1000)
********
Offline Offline

Last Login: 15 June, 2013, 17:17:59
Date Registered: 15 May, 2010, 17:53:56
Posts: 837


Total Post Ratings: +51

View Profile
« Reply #23 on: 27 February, 2012, 21:56:05 »
0

I notice your aciom use Select() command, but it's the same tokens than Axe parser command, is there no conflict? Huh?
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%
Pages: 1 [2]   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.53 seconds with 30 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.