How to start programming with assembly?
Re: How to start programming with assembly?
yay\o/ it works! I compile provided code with qmac, and text prints!
thank you very much for the help. Ifound some examples about graphics, hope code will work.
thank you again
thank you very much for the help. Ifound some examples about graphics, hope code will work.
thank you again
Re: How to start programming with assembly?
If you are referring to to my posting above: Either you are not using TK2. (There is a bug in the Qdos CALL command which may affect the execution of the routine above, the details of which I no longer recall.) Or the assembler you used produces different results to Qmac (see a previous post on this topic on alignment issues) Finally: There is some problem with QL2K or other software in use!g0blinish wrote:no, emulation stops.
QL2K emulator.
Just to make sure Im not talking through my hat: I copied the assembler code above. Assembled it with Qmac (under QPC2). Copied it to somewhere accessible by Q-emulator. Fired Q-emulator up with Qdos JS + TK2. Loaded and CALLed the code. It works as advertised!
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Re: How to start programming with assembly?
how to use TK2?
to type TK2_EXT?
and I didn't understand: word-aligned - by size or by address?
to type TK2_EXT?
and I didn't understand: word-aligned - by size or by address?
Re: How to start programming with assembly?
Its so long since I tried QL2K I couldnt say, but you should always be able to LBYTES TK2. Get the latest version from Dilwyn's website. Some emulators let you attach ROM version of TK2 as a ROM. There is probably no particular advantage in doing this on an emulator other than have TK2 available immediately on start.g0blinish wrote:how to use TK2?
to type TK2_EXT?
After booting you could first try typing EXTRAS at the console. If the system responds with a list of extra commands, then there should be no need to type TK2_EXT. If it doesnt, then you do.
QPC2 and SMSQmulator (both free!) run SMSQ/E - the best, most inclusive, and most advanced version of "Qdos". They also sport high colour and lots of different resolutions. TK2 is part of these systems; no need to do anything.
Q-emulator can also run SMSQ/E, but requires a bit of know-how and effort. Q-emulator is shareware. Its main advantage (apart from being very good) is that it runs most versions of Qdos, runs on a variety of platforms, and is reasonably well supported by its author.
MC68 CPUs < 68020 dont support odd addresses for word and longword operations, so one must always ensure that such addresses are "word-aligned", ie start on an even address. It is a good idea to stick to this restriction for any code you wish to be compatible with the original QL hardware - and most emulators.and I didn't understand: word-aligned - by size or by address?
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Re: How to start programming with assembly?
QL2K include TK2.ROM will try
Will read Qmac manual, I think aligning directive must exist.
Will read Qmac manual, I think aligning directive must exist.
Re: How to start programming with assembly?
Agree on SMSQ/E hails, but one caveat:pjw wrote:g0blinish wrote: QPC2 and SMSQmulator (both free!) run SMSQ/E - the best, most inclusive, and most advanced version of "Qdos". They also sport high colour and lots of different resolutions. TK2 is part of these systems; no need to do anything.
The Window Manager in SMSQ/E will most probably restore all buried windows after your program has ended - So, you won't see anything. SMSQ/E programs should wait for a keypress at the end to keep the program windows alive.
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: How to start programming with assembly?
It does exactly as instructed. Perfectg0blinish wrote:well, in case of qmac i see message:<>

Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Re: How to start programming with assembly?
Doesnt apply to the example given here though, provided the system console is not asleep. This routine will always print to system channel 0, which happens to coincide with S*BASIC channel#0..tofro wrote:Agree on SMSQ/E hails, but one caveat:pjw wrote:g0blinish wrote: QPC2 and SMSQmulator (both free!) run SMSQ/E - the best, most inclusive, and most advanced version of "Qdos". They also sport high colour and lots of different resolutions. TK2 is part of these systems; no need to do anything.
The Window Manager in SMSQ/E will most probably restore all buried windows after your program has ended - So, you won't see anything. SMSQ/E programs should wait for a keypress at the end to keep the program windows alive.
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen