One thing that I find useful about programming on older machines is that as they are slower, they force the programmer to write faster, more optimal code...So very true. I only just realized this morning that my app can take up to 200 mb of memory if played for 2 min. Yeah, now I'm hard core researching into memory management. Wouldn't have noticed it if I hadn't tried to port it to mac. I can definitely see from your view point, having a too powerful machine can hide issues you'll have later.
^ Oh, and welcome to the GMG. :)Thank you, Swap7hing
Wait, you made a language? Elaborate :oYes, a few years ago...
Why on earth would anyone want to program in assembly?Because it once was a standard, because it allows to control things in a more direct, immediate manner, because it represents a challenge (to quote Sir Edmond Hillary, first man to climb the Everest, "I climbed it because it was there"), because many great games were presumably made with it, etc.
because many great games were presumably made with it, etc.Not even Rogue was written in assembly. ;D
My interest is piqued. Do you have any example code you could post to satisfy our nerdy desires?Why, yes, although I must warn you I designed this system when I was about 13...
;Print out the first 16 Fibonacci numbers
Do 1 10 1 1 ;x=1
Do 4 10 1 1 ;y=1
Echo 1 ;print x
Do 5 10 1 15 ;timeout=15
PtrTo 6 ;store location to myrepeat
Do 5 30 1 1 ;timeout-1
Do 1 20 2 4 ;x=x+y
Do 2 10 2 1 ;ox=x
Do 3 10 2 4 ;oy=y
Do 4 10 2 2 ;y=ox
Do 1 10 2 3 ;x=oy
Echo 1 ;print x
BoolDie 5 ;exit if timeout<0
PtrFrom 6 ;goto myrepeat
1. You learn a lot about how computers work.I wouldn't build apps in assembly for efficiency anymore than I'd build a TV for efficiency.
2. You directly manipulate registers, so you have unparalleled efficiency.
ertain people such as me (and this is strictly our point of view, our opinion) believe it is interesting to program assembly, because it tends to be more challenging.Well if that's what drives you, let nobody stand in your way. :)
I have no idea... I've only recently 'migrated' from Mac OS 9 to Mac OS X (old version)
Macintosh forward compatibility...
I've managed to run a test application both in System 6 and Mac OS 9. Everything was identical except for the fonts, colors and GUI.
Is the forward compatibility as good in Mac OS X ?
Wait, you made a language? Elaborate :oBTW if this still interests anybody, I am now making a limited pseudo-C compiler for my VM system.
#define QUANTITY 20
int x = 1;
int y = 1;
int ox;
int oy;
int remainingNumbers=QUANTITY;
Echo(x);
remainingNumbers--;
sub loopPoint:
x+=y;
ox=x;
oy=y;
y=ox;
x=oy;
Echo(x);
remainingNumbers--;
if(remainingNumbers>0){
goto loopPoint;
}
Wow, that's a lot of information !
Very interesting, thank you.
What about the "FATCarbon" module, or compiling a program as a combination of fat binary and Carbon ?