Hi, Lisent here my problem i have to create a lil program but i dont know how
i know some of 6502 program because im working a bit with it but i visit this forum desperate because i need the help with this thing: A teacher told me to make a program doing this parameters
Create a Program that can move 1 bit right to left and left to right in a velocity of 10 secs and you display on screen
the program is 6502
Can anyone do it? because im new i dont have a clue of doing it thank you
It is a standing policy of this board and its members to not complete the homework of students. I'm sorry, you'll need to derive the solution yourself.
You don't give us enough to go on. The 6502 instructions to shift bits right and left are LSR and ASL; but if you're supposed to make a dot or square or something move back and forth on a screen, then depending on what your display type needs to be fed with, then the LSR and ASL might be rather irrelevant. To be a good programmer, you'll have to be a lot more detail-oriented. Although we won't just drop the turnkey solution in your lap, we can give you more guidance to develop your own solution if you give more details.
Why not take your bit, rotate it as suggest previously and use a delay loop for your time delay? you need to set for screen after, that will get only 8 steps so you should shit the bit across multiple screen locations in a smooth scroll.
"My biggest dream in life? Building black plywood Habitrails"
Don't worry, the 6502 is quite easy to learn (I taught myself when I was 14, I'm sure most of the old timers here have similar stories). I would start by downloading the 6502 family programming manual from the chip manufacturer's website. The book starts off with a tutorial section that should help you out; http://www.65xx.com/wdc/documentation/Programmanual.pdf. Also do a web search for tutorials for the Apple II, Atari 400 or 800, BBC Model B and Commodore 64. Those were extremely popular computers back in the 80s, they all use 6502 variants and there are still people who program them for fun. The old school cartridge Nintendos (commonly called NES) also had 6502s in them and also still have an active "homebrew scene". All this should give you enough information to get started on.