And generally I'm looking for some complete Documentation to the Opcodes of the 6502, even the "illegal" ones.
http://project64.c64.org/hw/c64.html
- How can I display the Value of an Adress on the Screen in _decimal_? IIRC >there is some routine in the BASIC-Rom which can do this, but I'm not sure.
- What is the fastest way to put text on the screen? I think it's by
POKEing the Values right into the Scrren RAM ($0400) but I still know there >are Kernel-Routines called "CHROUT" or "STROUT" or something like that.
- How can I display the Value of an Adress on the Screen in _decimal_?
IIRC there is some routine in the BASIC-Rom which can do this, but I'm
not sure. and reading through the Memory-Map-Document from project 64
didn't help either
- What is the fastest way to put text on the screen? I think it's by
POKEing the Values right into the Scrren RAM ($0400) but I still know
there are Kernel-Routines called "CHROUT" or "STROUT" or something
like that.
- How can I turn on and off the LED of the Floppy? I have seen some
Demos which do this, should be just one POKE ?
And generally I'm looking for some complete Documentation to the
Opcodes of the 6502, even the "illegal" ones.
(... details not included; if interested, ask).
How can I divide a Number by ten?
I seem to remember that
dividing by two is done by just rotating ...
But I really can't remember how to do this with any number besides 2.
And what is this algorithm, using the "decimal" mode?
David Mueller <david.mueller@post.rwth-aachen.de> wrote in message news:<Xns93B86BEA88D45davidmuellerpostrwth@baneinc.my-fqdn.de>...
Poking the screen is the fastest way to transmit data to the screen
but to get results nearly equivalent to character printing, you
need to subject character data to the following transformation:
Fill a 7 element array with the following data:
128,0,64,32,64,192,128,128
Set the subscript of the array element to the ascii value of
the character divided by 32. (Note that the zeroth element
<128> is not used and is needed only to simplfy the logic)
Exclusive OR the ascii value of the character with the
selected array element and poke the result to the screen
Hi there...
I don't know if this is the right Group, but since there ist no comp.lang.6502... :)
I just startet again to program my c64 in Assembler (I'm quite astonished that I still know that much) and now I realize that I can't remember some very simple things:
- How can I display the Value of an Adress on the Screen in _decimal_? IIRC there is some routine in the BASIC-Rom which can do this, but I'm not sure. and reading through the Memory-Map-Document from project 64 didn't help either
- What is the fastest way to put text on the screen? I think it's by
POKEing the Values right into the Scrren RAM ($0400) but I still know there are Kernel-Routines called "CHROUT" or "STROUT" or something like that.
- How can I turn on and off the LED of the Floppy? I have seen some Demos which do this, should be just one POKE ?
And generally I'm looking for some complete Documentation to the Opcodes of the 6502, even the "illegal" ones.
Thank's a lot for your help!
David
In addition your scheme fails to match character printing
for text with PETSCII values in the range from 96 to 127. These PETSCII values are very rare. Your alternative scheme should be considered when
it is likely that only text with common PETSCII values will be encountered.
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 764 |
Nodes: | 20 (0 / 20) |
Uptime: | 40:44:55 |
Calls: | 11,275 |
Calls today: | 1 |
Files: | 5,288 |
D/L today: |
81 files (10,064K bytes) |
Messages: | 521,283 |