Page 1 of 1
learning ml
Posted: Mon Jul 03, 2006 3:57 pm
by dented42
I am learning machine language for the c-128, and am armed with just the built in machine moniter.
what are the commands to print a character whose cscii code I have in the accumulator, on the screen. is there a builtin routine to accomplish this?
Posted: Tue Jul 04, 2006 11:20 pm
by administrator
We have the complete C128 manual posted and the section I think you would find useful is
http://www.commodore.ca/manuals/128_sys ... /app-j.htm
didn't find it
Posted: Fri Jul 07, 2006 7:51 pm
by dented42
I have dowloaded the e-text version of the systems guide, but alas, can find no intructions on ML, only about the monitor.
I have been searching my PDF copy of the programmers reference, but this is a difficult task, as the find command on my reader in not functioning properly. I know that I could of course poke directly into screen memory, but that does not help me unless I know where in memory the cursor is, and my ML skills are not up to the task. what I am hoping is that some one could get me the routine in a way that I can enter in to the monitor, and dissect later at my leisure.
Re: learning ml
Posted: Sat Jul 08, 2006 7:56 pm
by MacbthPSW
I am learning machine language for the c-128, and am armed with just the built in machine moniter.
what are the commands to print a character whose cscii code I have in the accumulator, on the screen. is there a builtin routine to accomplish this?
I'm hoping that the kernal calls are the same on the 128 as they are on the C64 and other Commodore 8-bits... that was how they were supposed to work, anyway. If so, it's quite easy:
LDA #$41
JSR $FFD2
Should print an A where the cursor is.