A course for the Dragon 32 · Chapters 0 to 15
This is the game from the last stage, at “Dragon speed”. Press Run, and move the basket with the arrows (under the screen, or on your own keyboard after clicking on the window). Five apples. How many will you catch?
Until now the game has run in a window of the course. Now it moves to the Dragon machine on the site: a whole computer, with the Dragon’s processor, memory and screen. There it runs just as it would in 1982.
OK appears.CLOADM "CATCH" and ENTER. CLOADM means “load machine code from the tape”. The numbers go into memory, into the same houses as in the window, from $2EE1, and OK appears again.CLS:EXEC and ENTER. CLS clears the screen, and EXEC tells the processor: “jump to the first house of the program”. The tape remembers which house that is.OK.RTS: “go back to whoever called you”. In the course windows DREAM called us, and on the machine BASIC’s EXEC called us. It’s like the plate from Chapter 12: whoever put it down gets the processor back.The same button is under every window in the course, from Chapter 2 to here. Any program you have seen, you can send to the machine and watch it run there.
Want to change something in the game? Here it is, written out, and you may change anything in it: the 5 in LEFT (how many apples), the 25 in TICK (how fast), the colours. Underneath you can see every line with its numbers. When there are no errors, the button below sends your version to the machine, on a tape called MYGAME: CLOADM "MYGAME", then CLS:EXEC.
Want to write a program of your own from scratch, with every command of the processor? The Assembler is waiting: an editor, run, step and send to the machine.
CLOADM, and play the sound at about 75% volume. When OK appears: CLS:EXEC.?IO ERROR appear? Change the volume and try again.In 1983 people wrote a game like this in DREAM, the editor and assembler from Dragon Data, and saved it to tape themselves:
CLEAR 200,12000, CLOADM, EXEC, then N (new program).0000 errors. BREAK then X: play.CSAVEM line from step 3, under your version. It needs three numbers: the first house, the last house, and the house where it starts running.EXEC &H6080 (where DREAM starts), then N.The numbers come out the same: the button assembles exactly like DREAM, house after house.
The game is yours, and you may change anything in it. Some ideas, from easy to hard:
LEFT, or the 25 in TICK (in both places). Smaller = faster.YOU WIN on the middle row, letter by letter, as in chapter 2.LDA ,U will still work with no change: it only asks “is there blue underneath?”.Write each idea in step 3, and send it to the machine with the same button.
You did it. You wrote a game in the language the games of 1982 were written in, and it runs on the machine. Every programmer of that time started exactly here: one block on the screen, and then another.
A hobbyist tribute project, not affiliated with or endorsed by Dragon Data. The course, drawings and text are our own. Every program in the course was checked on the site's Dragon machine (XRoar running the BASIC we wrote).