Jump to content



Photo
- - - - -

How Do I Use Assembly In Fx-9860g Sdk?


  • Please log in to reply
3 replies to this topic

#1 Assembler

Assembler

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 17 July 2009 - 01:22 AM

Hi,there.
I'm a newbie for 9860g programming,I checked all tuorials which I can found and got nothing.
A way like that (http://www.casiocalc...387&hl=assembly)
is too complicated to me.
I tried to use inline assembly but failed,is anyway to do this simply?

btw:my first goal is just input a number to a variable,but the standard function scanf() can't working...

Edited by Assembler, 17 July 2009 - 01:23 AM.


#2 Andreas B

Andreas B

    Casio Freak

  • Members
  • PipPipPipPip
  • 160 posts
  • Gender:Male
  • Location:Norway

  • Calculators:
    fx-9860G SD

Posted 17 July 2009 - 10:51 AM

For your question:
Create the assembly file with extension .src and add it to the project.
Example file:
.section P, code
	.export _myfunction

myfunction:
	whatever instructions are needed here

	.end
You can then call the function with myfunction().

For your goal: You could use a function that reads the input as string, and then use something like vsprintf() to interpret it. For an example of a function (in C) for reading a string, see http://casio.pastebin.com/f2ef7343f

Edited by Andreas B, 17 July 2009 - 10:51 AM.


#3 Assembler

Assembler

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 July 2009 - 01:52 AM

Thanks a lot !It's very useful.

#4 Guest_jc_*

Guest_jc_*
  • Guests

Posted 28 March 2011 - 07:37 AM

hello I have a question

is possible to create a password for transfer of programs between calculators or any other transfer




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users