wordskrot.blogg.se

Free windows emulator for mac
Free windows emulator for mac










free windows emulator for mac

Recently, we reconstructed a perfect copy of Apple I BASIC, the first piece of software Apple ever sold – in 1976.

FREE WINDOWS EMULATOR FOR MAC FOR MAC OS X

Here is Apple I BASIC as a scripting language for Mac OS X Intel: Wouldn’t it be nice if you could use Apple I BASIC to replace, say, Perl? Wouldn’t it be nice if you could do this: Now it is time to make something useful out of it. There are some very important differences: Just yet another Apple I emulator for Mac? No, it is not. The “apple1basic” executable is a statically recompiled version of the original binary. “apple1basic” plugs right into UNIX stdin and stdout. You can pass “apple1basic” the filename of a BASIC program to run. You can run BASIC programs like shell scripts. Which brings us back to our first example: You can even use apple1basic as a UNIX script interpreter by adding the hashbang as the first line: $ echo MICHAEL STEIL | apple1basic reverse.bas Note that if stdin is a pipe, “INPUT” doesn’t print the “?”: We can tell apple1basic to run a BASIC program from a file, too:Īpple1basic supports redirection of stdin and stdout. These games, written for the Apple I in the 1970s, have been taken from this and other sites and converted from tokenized hexcode into ASCII. You can also download hanoi-apple1.bas, a fixed version of Amit Singh’s BASIC program from his Hanoimania project. My static recompiler takes the Apple I BASIC binary as an input and produces a native executable. This file does not contain the original 6502 code and runs 100% natively. On a 2 GHz machine, it runs about 2000 times faster than a 1 MHz Apple I, so it can run one 6502 clock cycle per native cycle. (In the best case, an interpreter can only get up to 1/10 of an emulated cycle per native cycle.)Īccesses to the Apple I terminal (keyboard and screen) are handled by functions that implement a few hacks.












Free windows emulator for mac