Author Topic: [Ndless] Can't make a "hello world" work !  (Read 2226 times)

0 Members and 1 Guest are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
[Ndless] Can't make a "hello world" work !
« on: March 10, 2013, 05:02:14 pm »
Hi guys,

I recently decided to try out ARM9 assembly for the Nspire, so I wrote a simple "hello world" program ... which I can't even compile.

Here's the code : http://pastebin.com/ReRUv7ED

It seems to compile normally, but on the Nspire nor on nspire_emu it doesn't do anything. Not even crashing. Weird.

So, can someone explain me how to setup the assembly environment correctly and with the latest version of Ndless, so that it'll work properly ?

I also noticed that even hella.tns (an ASM version of hello world, in Ndless's "Samples" directory) didn't work neither on CX or non-CX.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless] Can't make a "hello world" work !
« Reply #1 on: March 11, 2013, 04:11:24 am »
Never mind, I just totally forgot that
Code: [Select]
puts() writes on the RS232 port, not the screen <_<
* Matrefeytontias is a dumbass

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [Ndless] Can't make a "hello world" work !
« Reply #2 on: March 11, 2013, 06:06:01 am »
you have to use printf()
I'm not a nerd but I pretend:

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless] Can't make a "hello world" work !
« Reply #3 on: March 11, 2013, 06:26:35 am »
It's the same. RS232 output.