Search found 488 matches

by FARID
Wed Mar 29, 2017 5:51 am
Forum: General Stuff
Topic: Rom Laboratory 404
Replies: 18
Views: 6088

Re: Rom Laboratory 404

FARID: You may want to deal with the page encoding for example on this page. The page seems to be Windows-1250, aka Central European (Windows) and shows up as garbled from here. The auto detection, at least in Chrome, would have worked except that the web server declares that the page is UTF-8. Eve...
by FARID
Tue Mar 28, 2017 1:31 am
Forum: General Stuff
Topic: Rom Laboratory 404
Replies: 18
Views: 6088

Re: Rom Laboratory 404

by FARID
Tue Mar 21, 2017 11:59 pm
Forum: Newbie Help Center
Topic: Corrupt File?
Replies: 45
Views: 8761

Re: Corrupt File?

Another question. Can you use multiple AND commands like this: LDA Controller CMP #1 AND #2 AND #4 BEQ Example No that will not work as you want. You must read joypad port ($4016) eight times , in order to find out the status of all buttons. With each read of $4016 the state of only one button is r...
by FARID
Sun Mar 19, 2017 11:33 pm
Forum: Newbie Help Center
Topic: Corrupt File?
Replies: 45
Views: 8761

Re: Corrupt File?

There were a lot of mistakes in your code, I fixed some of them in a way that it works as you want : ;---------------------------------------------------------------- ; constants ;---------------------------------------------------------------- PRG_COUNT = 1 ;1 = 16KB, 2 = 32KB MIRRORING = %0001 ;%0...
by FARID
Sun Mar 12, 2017 10:08 pm
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Init Code
Replies: 16
Views: 5010

Re: NES Programming Tutorial : Init Code

I (and probably most of other beginners) prefer to use explicit style of coding and easy to read, even if it eats a lot of space! Let me recommend getting into the habit of being more efficient and concise right from the start. I've done projects that took two inches of fanfold paper to print (in s...
by FARID
Sun Mar 12, 2017 10:08 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Init Code
Replies: 16
Views: 5010

Re: NES Programming Tutorial : Init Code

LDA is fine, I just tend to use BIT out of habit because of its strong association with $2002. SEI masks interrupts, but writing to $4010 and $4017 will disable and acknowledge any pending interrupts from those devices. I think it's good practice to write to them at init. If you ever CLI to start u...
by FARID
Sun Mar 12, 2017 9:31 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Init Code
Replies: 16
Views: 5010

Re: NES Programming Tutorial : Init Code

I am usually setting 2001 to $1e to enable normal rendering. $80 would set the blue emphasis bit, but leave rendering off. In what way it is better? @ rainwarrior Thanks for the suggestion. I used LDA $2002, is that ok? Also before the PPU warm up I think you may need to write $40 to $4017 (disable...
by FARID
Sat Mar 11, 2017 11:29 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Intro
Replies: 0
Views: 3122

NES Programming Tutorial : Intro

There are a lot of experienced programmers here but I am still a beginner, so please forgive me for my rudeness :oops: As I heard if you want to learn something better then teach it to someone else. I hope this tutorial help beginners. In this tutorial I am going to use ASM6 and NROM-256. In each le...
by FARID
Sat Mar 11, 2017 11:25 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Move Background
Replies: 0
Views: 3310

NES Programming Tutorial : Move Background

;NES Programming Tutorial ;Level 6 : Move Background ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Variables L_byte = $0000 H_byte = $0001 bg_X_pos = $0002 bg_Y_pos = $0003 NMI_index = $0004 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
by FARID
Sat Mar 11, 2017 11:25 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Init Code
Replies: 16
Views: 5010

NES Programming Tutorial : Init Code

;NES Programming Tutorial ;Level 4 : Init Code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;iNES header data (16bytes) ;32KB PRG + 8KB CHR + NROM-256 + Vert...
by FARID
Sat Mar 11, 2017 11:25 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : iNES Header
Replies: 6
Views: 3097

NES Programming Tutorial : iNES Header

;NES Programming Tutorial ;Level 2 : iNES Header ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;iNES header data (16bytes) ;32KB PRG + 8KB CHR + NROM-256 + Ve...
by FARID
Sat Mar 11, 2017 11:24 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Source Code Structure
Replies: 1
Views: 1994

NES Programming Tutorial : Source Code Structure

Binary, Decimal, Hexadecimal numbers : * We use decimal numbers (0 ~ 9) in our usual usage to count : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ... * Computers use binary numbers (0 and 1) : 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111, ... * Long seri...
by FARID
Sat Mar 11, 2017 11:24 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Interrupts
Replies: 3
Views: 2525

NES Programming Tutorial : Interrupts

CPU & PPU Memory Map : * CPU Memory address starts from $0000 to $FFFF : http://s9.picofile.com/file/8289752842/02.png * Need more info about CPU memory map? then check this : CPU memory map * PPU Memory address starts from $0000 to $3FFF : http://s8.picofile.com/file/8289752850/03.png * Need more i...
by FARID
Sat Mar 11, 2017 11:24 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Background
Replies: 0
Views: 5341

NES Programming Tutorial : Background

NES graphic : * NES uses a very complex method to compress and store graphic data, why? Maybe because memory was expensive back then * There are two kinds of graphic on screen : 1) Background 2) Sprites * Anything that moves on the screen is a sprite (for example Mario), other fixed graphics are bac...
by FARID
Sat Mar 11, 2017 11:24 am
Forum: Newbie Help Center
Topic: NES Programming Tutorial : Sprite
Replies: 0
Views: 3345

NES Programming Tutorial : Sprite

;NES Programming Tutorial ;Level 7 : Sprite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Variables L_byte = $0000 H_byte = $0001 bg_X_pos = $0002 bg_Y_pos = $0003 NMI_index = $0004 sprite_Y = $0200 sprite_tile = $0201 spri...