Author Topic: ASM arrives on the HP Prime!  (Read 27425 times)

0 Members and 1 Guest are viewing this topic.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: ASM arrives on the HP Prime!
« Reply #15 on: July 07, 2014, 02:16:59 pm »
Well, there's an Haskell compiler for arm if I recall correctly. So it's pretty easy. :P

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: ASM arrives on the HP Prime!
« Reply #16 on: July 07, 2014, 02:25:17 pm »
Nice job but sadly I don't have a Prime

(comment)

Offline ordelore

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +7/-0
  • Genius and Friend
    • View Profile
    • ordelore8x
Re: ASM arrives on the HP Prime!
« Reply #17 on: July 07, 2014, 04:57:04 pm »
Wait.
So the experience coding with the Prime will be like coding with pre-TI-83 calculators?
I am a friend.
I mine Bitcoins.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: ASM arrives on the HP Prime!
« Reply #18 on: July 07, 2014, 05:02:05 pm »
The OP is kind of misleading, but it's really C. The coding experience would be comparable to the Casio Prizm.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: ASM arrives on the HP Prime!
« Reply #19 on: July 07, 2014, 05:03:59 pm »
Yeah, C on Prime, now port all the emulators to kill productivity.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: ASM arrives on the HP Prime!
« Reply #20 on: July 07, 2014, 06:38:59 pm »
This is pretty awesome. ;D

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: ASM arrives on the HP Prime!
« Reply #21 on: July 07, 2014, 06:40:11 pm »
By the way I hacked a little in Lionel's code, I have no idea if it works since I have no HP Prime, but feel free to try it and tell me if it works. Pretty much the same installation instructions as in the OP.

Edit: wait where's the attachment? It says it's there but it's not.

Edit2: http://juju2143.ca/foo_20140707_1831.tar.bz2
« Last Edit: July 07, 2014, 06:46:46 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM arrives on the HP Prime!
« Reply #22 on: July 07, 2014, 06:43:29 pm »
The OP is kind of misleading, but it's really C. The coding experience would be comparable to the Casio Prizm.
Well, C compiles to some sort of machine code like ASM does and there's no official C compiler dedicated to the Prime, but yeah when ASM is possible on an ARM device, C is automatically possible too.




Also I would try the proof of concept linked in the first post and yours, but I spent $200 with shipping included for that calc and since I often had connectivity problems in the past, I was worried that I could brick my calc or become no longer able to get it detected by my computer. I would rather wait until we have a shell-based example, a way to dual-boot or an OS patch that still provides full official firmware functionalities before taking any risk.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: ASM arrives on the HP Prime!
« Reply #23 on: July 07, 2014, 06:49:20 pm »
I see, but as they said, you can easily go back in recovery mode and go back to the official OS, but yeah there's still a non-null chance to brick it if you mess up. Probably not worth it considering you spent a lot on it.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM arrives on the HP Prime!
« Reply #24 on: July 07, 2014, 07:53:10 pm »
Oh ok, but I was more worried about if an OS file accidentally erased the recovery mode code or something, if that's even possible at all.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: ASM arrives on the HP Prime!
« Reply #25 on: July 08, 2014, 12:40:08 am »
Oh ok, but I was more worried about if an OS file accidentally erased the recovery mode code or something, if that's even possible at all.
I'll just quote the HP Museum thread:
Quote from: debrouxl
Quote from: eried
does the firmware utility always recover the calculator to the "upload" mode?
Holding Symb before and after releasing the Reset button should always be able to recover the calculator, indeed. That is, unless one destroyed the area where the contents of BXCBOOT0.BIN are stored, triggering intentional bricking.
So yeah either you failed bad time with putting the elf in the OS upgrade file so BXCBOOT0.BIN corrupted or said elf messed up with said area where the contents of BXCBOOT0.BIN are stored. Either way, you messed up badly in a specific way if you manage to brick your calc. But normally (someone should confirm it), you should be safe.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ASM arrives on the HP Prime!
« Reply #26 on: July 08, 2014, 12:41:53 am »
Ah right, so that's the area we must not touch. Beware, ASM/C coders :P

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: ASM arrives on the HP Prime!
« Reply #27 on: July 08, 2014, 01:28:44 am »
@Juju if you can use GCC you have asm readily available. You can even inline it in C code if you want, or you can do pure asm programs.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: ASM arrives on the HP Prime!
« Reply #28 on: July 08, 2014, 01:33:45 am »
@Juju if you can use GCC you have asm readily available. You can even inline it in C code if you want, or you can do pure asm programs.
That is true. There is no C without asm, but the opposite is not always true. ARM processors should always support C.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

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: ASM arrives on the HP Prime!
« Reply #29 on: July 09, 2014, 07:03:14 pm »
Agreed. Modern ARM is basically built to run Linux and C.