![Photo](https://secure.gravatar.com/avatar/1c6b4d7ccc766c0901b966ec8dc3b0e1?s=100&d=https%3A%2F%2Fcommunity.casiocalc.org%2Fdot%2Fpublic%2Fstyle_images%2Fmaster%2Fprofile%2Fdefault_large.png)
Anyone With Afx 2 And Rom 1.01?
#1
Posted 03 August 2004 - 05:05 AM
#2
Posted 03 August 2004 - 06:34 AM
#3
Posted 03 August 2004 - 07:12 AM
![:rolleyes:](/dot/public/style_emoticons/default/rolleyes.gif)
Just send .exe files.
Roeoender
#4
Posted 04 August 2004 - 06:57 AM
#5
Posted 04 August 2004 - 09:18 AM
![:blink:](/dot/public/style_emoticons/default/blink.png)
Probably those execs were too simplistic and they didn't run the code that causes problems.
Did you use doubles or floats?
I know two programs that didn't work on ROM1.01 because of floating-point numbers:
1. Zelda game demo
2. Touche's Math appplications (mathsap.exe)
There is also Open Watcom C compiler that I advertise for some time, it has various options regarding FP math, but I didn't test them as I can live without FP.
Roeoender.
#6
Posted 04 August 2004 - 10:42 AM
#7
Posted 04 August 2004 - 03:42 PM
#8
Posted 04 August 2004 - 07:47 PM
EDIT: It compiles fine with Turbo C++ but Turbo C gives me an Out of memory in function main error. Do any of you know what the limitation is for Turbo C?
#9
Posted 04 August 2004 - 08:30 PM
asm {
}
doesn't work, you need to write "asm" before each asm command:
asm push DS;
asm pop DS;
About the error you have (if it what I'm thinking about), it happens if you have 10 thousands lines in your main() function.... any main() function in any program should never be more than 100 lines.
#10
Posted 04 August 2004 - 09:07 PM
Well it doesn't crash - this is only I can say for now.
I can put something on the stack too, but that is all.
Roeoender.
#11
Posted 04 August 2004 - 09:30 PM
Roeoender: Because I couldnt compile the program in C I did not upload the new version. The version on my site is from the beginning of June so it is pretty simple.
#12
Posted 05 August 2004 - 06:35 AM
From the declaration of main to the closing bracket there are 1364 lines. Are you saying that if I break this up into functions this will fix my problem?
definitely yes
![:)](/dot/public/style_emoticons/default/smile.png)
and don't use goto, you're not programming in basic. Everytimes you have repeating code: make a function.
Putting asm before each command does not work. I get "In-line assembly not allowed in function x" where x is any function I put it in.
Well in the help of TC2 it says you need to compile with TCC:
asm <opcode> <operands> <; or newline>The asm statement allows you to placeassembly language statements in the middleof your C source code. Any C symbols arereplaced with the appropriate assemblylanguage equivalents. To use this featureyou will need to compile using TCC.Example: asm mov ax,_stklen
#13
Posted 05 August 2004 - 01:00 PM
![:)](/dot/public/style_emoticons/default/smile.png)
#14
Posted 05 August 2004 - 07:22 PM
1300 lines are too much for a single function but barely nothing for a single .c file, you shouldn't have problems to compile your code.
#15
Posted 05 August 2004 - 08:46 PM
#16
Posted 08 August 2004 - 05:53 PM
![:(](/dot/public/style_emoticons/default/sad.png)
#17
Posted 09 August 2004 - 10:04 PM
#18
Posted 10 August 2004 - 12:27 AM
#19
Posted 10 August 2004 - 06:21 AM
If it is not the cable tell us the exact error message ...
#20
Posted 10 August 2004 - 10:28 PM
![:(](/dot/public/style_emoticons/default/sad.png)
#21
Posted 11 August 2004 - 07:28 PM
Make it 10 times to ensure that your flash is ok.
Beware that everything (or at least everything on the flash) gets deleted!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users