Author Topic: [AXE] electricity simulator  (Read 10146 times)

0 Members and 3 Guests are viewing this topic.

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] electricity simulator
« Reply #30 on: November 30, 2012, 05:42:46 pm »
Could do that, only problem is that one would need xlib for example

But whatever we'll see what happens :p
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [AXE] electricity simulator
« Reply #31 on: November 30, 2012, 06:53:29 pm »
You can make an asm library that is a program :P You've probably seen a bazillion of mine. Basically what I think they mean is that you can make an Axe program that handles all the graphics based on input from a BASIC program.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: [AXE] electricity simulator
« Reply #32 on: November 30, 2012, 07:55:35 pm »
yeah ^^
Axe can access all of the basic variables, including Ans, pretty easily, so passing values to a program shouldn't take too much work. using something like Batlib would probably be a better idea, though.

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] electricity simulator
« Reply #33 on: December 01, 2012, 07:56:05 am »
So it's too hard to use floats in axe...?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [AXE] electricity simulator
« Reply #34 on: December 01, 2012, 07:57:33 am »
Yes, without using bcalls which would require using opcodes.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: [AXE] electricity simulator
« Reply #35 on: December 01, 2012, 07:58:57 am »
Too bad axe doesn't support true inline AMS yet. Only opcodes.
If you like my work: why not give me an internet?








Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [AXE] electricity simulator
« Reply #36 on: December 01, 2012, 07:59:00 am »
errm... <_< I think someone made an axiom for floating point.
And it's not tooo hard to create a bunch of FP routines in axe.
I'm not a nerd but I pretend:

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: [AXE] electricity simulator
« Reply #37 on: December 01, 2012, 08:14:24 am »
There are internal fixed-point decimals, iirc. How much precision do you really need? Surely not 9 bytes.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [AXE] electricity simulator
« Reply #38 on: December 01, 2012, 08:15:46 am »
if possible you can even just multiply by 10 to get one decimal.
I'm not a nerd but I pretend:

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: [AXE] electricity simulator
« Reply #39 on: December 01, 2012, 08:16:30 am »
Maybe millivolts and tenths of milliamperes are sufficiently small increments?
If you like my work: why not give me an internet?








Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] electricity simulator
« Reply #40 on: December 01, 2012, 08:24:36 am »
There are internal fixed-point decimals, iirc. How much precision do you really need? Surely not 9 bytes.

I think it could be a number like: 999,99   I don't think i'll need more
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: [AXE] electricity simulator
« Reply #41 on: December 01, 2012, 08:27:26 am »
Well from a programmers perspective you can have numbers up to 0-65535 or 0-655,35 with the standard 16 bit resolution (unsigned) or -32767 to 32767 or -327,67 to 327,67 (signed)
If you like my work: why not give me an internet?








Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] electricity simulator
« Reply #42 on: December 01, 2012, 08:39:58 am »
How would i do the standard 16bit then? How would i make a float out of them?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: [AXE] electricity simulator
« Reply #43 on: December 01, 2012, 08:51:57 am »
You wouldn't be using floats. You would be using an integer, and knowing that the integer is actually the number*1000 (thus, 1.010 amps would be stored as the integer 1010)

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: [AXE] electricity simulator
« Reply #44 on: December 01, 2012, 08:53:29 am »
Yes but how could i in example display the "float"?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER