On Sunday 30 June 2002 15:46, Frederik Boelens wrote: > Why not just make the game in assembly in stead of TP?. > Imho this seems much more diffecult, and with assembly you've got a lot > more oppurtunities ;)
Programming in a higher level language is much easier, because you have things like type checking, easy control statements (if, for, while), subroutine calls with a parameter list, mathematical expressions are very compact etc. I wouldn't recommend using assembly unless you absolutely need it, to get maximum performance or to get maximum control over the system. > > We now created the following situation in the source: > > dw start,einde-04000h > > dw start2,start > > > > and we get no errors anymore. But when we do this: > > > > dw start,einde-04000h+start2 > > > > The error is back..... > > > > so it looks like the start2 is going wrong. > > > > but what does dw do? "define word", it inserts a word in the output. For example, "dw 01234h" inserts "034h, 012h" in the output (low byte is stored first in memory on Z80). It's rather similar to "inline" in TP, I guess. This particular dw is probably creating a BLOAD header. If so, the statement before it is "db 0FEh" ("db" is "define byte"). The BLOAD header looks like this: db 0FEh ; magic number dw start ; start address dw end ; end address (inclusive) dw exec ; execution address It's the same as the parameters you add after a BSAVE command in BASIC. Bye, Maarten -- For info, see http://www.stack.nl/~wynke/MSX/listinfo.html