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

Let's talk about anything related to the 6502 microprocessor.
Amenofhis
Posts: 31
Joined: 21 Nov 2008

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

Post 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
kc5tja
Posts: 1706
Joined: 04 Jan 2003

Post 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.
Amenofhis
Posts: 31
Joined: 21 Nov 2008

Didnt know that

Post 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.
Amenofhis
Posts: 31
Joined: 21 Nov 2008

Material

Post by Amenofhis »

Dont you guys have material related to my problem some Examples or something i could star with?
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Post 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.
Amenofhis
Posts: 31
Joined: 21 Nov 2008

Post 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.
Amenofhis
Posts: 31
Joined: 21 Nov 2008

Square

Post by Amenofhis »

I can use any kinda a of bit Can be a Number a Dot or Circle
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Post 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.
Amenofhis
Posts: 31
Joined: 21 Nov 2008

Hum

Post 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
Amenofhis
Posts: 31
Joined: 21 Nov 2008

I need help pleas

Post 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
Nightmaretony
In Memoriam
Posts: 618
Joined: 27 Jun 2003
Location: Meadowbrook
Contact:

Post 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.
"My biggest dream in life? Building black plywood Habitrails"
Amenofhis
Posts: 31
Joined: 21 Nov 2008

Thanks

Post 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.
Amenofhis
Posts: 31
Joined: 21 Nov 2008

Sorry

Post by Amenofhis »

Im not good in micro


thats all. Thanks you Very much
faybs
Posts: 106
Joined: 16 Oct 2006

Re: Sorry

Post 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.
phillhs
Posts: 12
Joined: 23 Nov 2008

Post by phillhs »

Nightmaretony wrote:
shit the bit across multiple screen locations in a smooth scroll.
I'm sure you mean SHIFT the bit :) :) :)

Phill.
Post Reply