Register

Search found 606 matches

Return to advanced search

SimonLothar
Fri May 25, 2012 10:12 pm
 
Forum: Released Projects
Topic: Add functions to Basic Casio programs
Replies: 43
Views: 97534

Thanks, I've found the address to the start of the syscall's code. On OS 2.00 it's 0x80187340. Luckily it begins with the bytes 0x2F 0xE6 0x6E 0x53. Fine. I changed then to 0xA5600200. No. You have to insert a jump to the redirection address, which should be 0xA5600600, just to be sure. But not tod...
SimonLothar
Fri May 25, 2012 9:00 pm
 
Forum: Casio fx-9860 SDK
Topic: Casio Basic to SDK
Replies: 65
Views: 151169

PRGM_GetKey is an int function, which returns the pressed key as int-function result. GetKey passes the pressed key via an unsigned int-pointer-parameter ( &key ). int AddIn_main(int isAppli, unsigned short OptionNum) { int key; // changed unsigned char toets[15]; Bdisp_AllClr_DDVRAM(); while( 1 ){ ...
SimonLothar
Fri May 25, 2012 3:41 pm
 
Forum: Released Projects
Topic: Add functions to Basic Casio programs
Replies: 43
Views: 97534

determination of a syscall's address (fx-9860): get the pointer to the syscall-table from fileoffset 0001007C (for fx-9860) f. i. it is 0x80151770 on OS 1.02 (the value is an example; it will be different with other OSes) subtract 0x80000000 to get the fileoffset to the syscall table ->0x00151770 ev...
SimonLothar
Fri May 25, 2012 6:48 am
 
Forum: Released Projects
Topic: Add functions to Basic Casio programs
Replies: 43
Views: 97534

[color="#FF0000"]EDIT[/color] It's more difficult than I could imagine. This is a small feedback : 1. done :D 2. I think I've found the syscall, see picture, but where is the offset ? [ATTACH=CONFIG]46[/ATTACH] 3. I do not know how do this :mad: 7. I use Casio SDK. I have compiled my function and I...
SimonLothar
Thu May 24, 2012 5:14 am
 
Forum: Casio Basic Development
Topic: Casio Basic Create a clock
Replies: 4
Views: 12537

nagarajan wrote:Is it possible to create a digital watch in Casio-Basic?
No, not with an unmodified Casio-Basic.
In any case you need some Basic-extension like Purobaz's PRGM2_fx
http://www.casiopeia.net/forum/viewtopic.php?f=19&t=1380
SimonLothar
Tue May 22, 2012 9:38 pm
 
Forum: Tutorials & Code Snippets
Topic: Fx-9860 battery indicator (C)
Replies: 21
Views: 72501

(1) What is PutKey? PutKey is syscall 0x910; it simulates a keypress (and ends the blocking state of GetKey). (2) So TestHandler2 is the timer handler (set in SetTimer) whose only job is to generate a key event (via PutKey?) which when caught, I call MainBatteryPercentage()..? How is this different...
SimonLothar
Tue May 22, 2012 7:38 pm
 
Forum: Tutorials & Code Snippets
Topic: Fx-9860 battery indicator (C)
Replies: 21
Views: 72501

Is it working for you? Nope. I had a closer look again. The AD-conversion is interrupt driven, too. If it is called from inside of an interrupt handler, the interrupt system gets confused. Alternatively you could use PutKey in your interrupt-handler to send a special keycode every now and then, whi...
SimonLothar
Tue May 22, 2012 6:03 pm
 
Forum: Tutorials & Code Snippets
Topic: Fx-9860 battery indicator (C)
Replies: 21
Views: 72501

If F01_1_Handler() (called from out of the main-loop) is interrupted by the timer, F01_1_Handler() would be called while its already running. The outcome of such a situation is difficult to predict. The first thing I would implement is some prevention (busy). int y = 0; int busy = 0; void F01_1_Hand...
SimonLothar
Tue May 22, 2012 4:55 pm
 
Forum: Tutorials & Code Snippets
Topic: Fx-9860 battery indicator (C)
Replies: 21
Views: 72501

happy wrote:...but hung (had to reset my 9860 - OS 2.00) when I used F01_1_Handler in a timer.

What parts of "F01_1_Handler" do you exactly use in your timer-handler?
SimonLothar
Tue May 22, 2012 1:51 pm
 
Forum: Tutorials & Code Snippets
Topic: Fx-9860 battery indicator (C)
Replies: 21
Views: 72501

Battery.g1a works in my fx9860gII sd with os 2.X (i dont know now the os version, i have my calc at home). Yep. I just downgraded my fx-9860GII SD to OS 2.00 and Battery.G1A works as expected. Hence I had a closer look. In fact, BATTERY.G1A uses a single jump-address 0x8003C484 to get the battery-v...
PreviousNext

Return to advanced search