Page 1 of 2

Help i need to create a program and i dont know how

Posted: Fri Nov 21, 2008 3:28 pm
by Amenofhis
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

Posted: Fri Nov 21, 2008 5:20 pm
by kc5tja
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.

Didnt know that

Posted: Fri Nov 21, 2008 5:31 pm
by Amenofhis
Ok but can u give me at least a tip to start? im not good making these things but i have base of how to creat it.

Material

Posted: Fri Nov 21, 2008 5:45 pm
by Amenofhis
Dont you guys have material related to my problem some Examples or something i could star with?

Posted: Fri Nov 21, 2008 6:39 pm
by GARTHWILSON
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.

Posted: Fri Nov 21, 2008 7:00 pm
by Amenofhis
thats all i got for know that was the teacher told me, he teach about LSR and ASL but i didnt understand a thing

He said

Make a program that move a bit right to left and left to right in a Velocity of 10 seg and can be desplayed on the Screen that all i got.

im thinking and still not getting it.. Thats why i require help. cant do it my own im sure of that im not in the 6502 much.

Square

Posted: Sat Nov 22, 2008 3:50 am
by Amenofhis
I can use any kinda a of bit Can be a Number a Dot or Circle

Posted: Sat Nov 22, 2008 4:45 am
by GARTHWILSON
Most of the issue is how to display it, and that depends on the display hardware and firmware which you haven't told us anything about.

Hum

Posted: Sat Nov 22, 2008 7:29 am
by Amenofhis
I dont know much i only us e a program for it 6502 is the name dont know of Firmware of hardware too sorry

I only can use the programs

I need help pleas

Posted: Sun Nov 23, 2008 2:22 pm
by Amenofhis
i have to move a square right to left and left to fight in 10 sec and display on screen

Lda $#0200
Sta

like that! Firmware no hardware

Posted: Sun Nov 23, 2008 4:49 pm
by Nightmaretony
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.

Thanks

Posted: Sun Nov 23, 2008 5:23 pm
by Amenofhis
im not getting it, for me this is a hard thing to do never thought this is gone be so hard to do

thanks anyway but this is one hard language i do not understand.

Sorry

ill ask someone around to do it. never see this so hard.

Thanks all of you for the help.

Sorry

Posted: Sun Nov 23, 2008 5:25 pm
by Amenofhis
Im not good in micro


thats all. Thanks you Very much

Re: Sorry

Posted: Sun Nov 23, 2008 9:11 pm
by faybs
Amenofhis wrote:
Im not good in micro


thats all. Thanks you Very much
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.

Posted: Sun Nov 23, 2008 11:47 pm
by phillhs
Nightmaretony wrote:
shit the bit across multiple screen locations in a smooth scroll.
I'm sure you mean SHIFT the bit :) :) :)

Phill.