I'm looking for some sort of information on how to use the libraries that come with MSXpad. I can code console apps in Pascal without problems, but I'd like to use the MSX in something other than "dumb terminal" mode. As a rather juvenile bonus (and exhortation for you to get me information that would enable me to make more interesting programs, I'll post a Pascal implementation of a certain BASIC program once loved by legions of 10 year old children...
(* The classic repeating statement, coded in a proper, structured fashion. *) Program NotThatFunny; Const FlyingPigs : Boolean = FALSE; (* Humorous naming for the win *) JunkToSay : String [80] = 'I''m still not laughing.'; JustInCase : String [80] = 'WTF!!! There''s a pig on the roof!'; Begin repeat writeln (JunkToSay); until FlyingPigs = TRUE; writeln (JustInCase); end.
Note: I always define my strings to 80 characters as that's the biggest they're ever likely to get. Conveniently, it's also the most common text screen width...
Login or register to post comments