Search found 3 matches
- Thu Dec 28, 2017 4:41 pm
- Forum: Newbies
- Topic: 6502 BCD based on HEX converter
- Replies: 5
- Views: 2521
6502 BCD based on HEX converter
Hi, I have to code two programs in 6502, the first one - showing on the screen hexa number - is done, and it works correctly, but the second one - showing decimal number on the screen - isn't working. I'm trying to connect the program, which is working with the functions which let count decimal ...
- Wed Dec 27, 2017 9:17 am
- Forum: Programming
- Topic: Converting byte to hex string
- Replies: 15
- Views: 12462
Re: Converting byte to hex string
Thank you for your answer. I edited my code as you'd wrote, but it didn't work, it printed high byte all the time. I tried putting
lda <text
ldx >text
in different positions, because I wonder if it should be executed 2 times, but I haven't had good result yet.
opt f-g-h+l+o+
org $1000
start ...
lda <text
ldx >text
in different positions, because I wonder if it should be executed 2 times, but I haven't had good result yet.
opt f-g-h+l+o+
org $1000
start ...
- Mon Dec 25, 2017 6:08 pm
- Forum: Programming
- Topic: Converting byte to hex string
- Replies: 15
- Views: 12462
Re: Converting byte to hex string
You'll find code for printing a hex byte at http://www.sbprojects.com/projects/apple1/wozmon.txt ; search for "PRBYTE" on that page. That's code written by Woz, so should be worth looking at.
Hi, I want to change this code to be able to write on a screen 2 bytes number. It shows only first byte ...
Hi, I want to change this code to be able to write on a screen 2 bytes number. It shows only first byte ...