Search found 19 matches
- Sat Dec 31, 2016 8:16 am
- Forum: Newbie Help Center
- Topic: Check whether there is a value in the array
- Replies: 4
- Views: 1763
Check whether there is a value in the array
I want to check if the number or not in an array how i can done? ColumnMap: LDA ColumnData, x STA #$00, x INX BNE ColumnMapDone ColumnMapDone: ColumnData: .db $01,$02,$03,$04,$05,$06,$07,$08,$09,$10,$0A,$0B,$0C,$0D,$0E,$0F .db $02,$03,$04,$05,$06,$07,$08,$09,$10,$11,$1A,$1B,$1C,$1D,$1E,$1F
- Fri Mar 11, 2016 7:05 am
- Forum: Newbie Help Center
- Topic: Increase and decrease the counter by one
- Replies: 2
- Views: 1352
Re: Increase and decrease the counter by one
Many thanks your code good option, I did so from what I understand: movex .dsb 1 moveleft .dsb 1 moveright .dsb 1 InitMove: lda #$01 sta moveright lda #$00 sta moveleft InitMoveDone: MoveLeft: lda moveleft beq MoveLeftDone lda movex sec sbc #$01 sta movex lda movex cmp #$50 bcs MoveLeftDone lda #$01...
- Thu Mar 10, 2016 9:10 am
- Forum: Newbie Help Center
- Topic: Changing background image, palette after the event
- Replies: 6
- Views: 2157
Re: Changing background image, palette after the event
Tank you for helping, your code should be placed after the NMI? I did not work the joystick if I clean it up NMI: lda #%10010000 sta $2000 lda #%00001110 sta $2001 WelcomeScreen: lda $2002 lda #$20 sta $2006 lda #$00 sta $2006 lda #<(welcome) sta pointerLo lda #>(welcome) sta pointerLo+1 ldx #$00 ld...
- Wed Mar 09, 2016 12:23 am
- Forum: Newbie Help Center
- Topic: Changing background image, palette after the event
- Replies: 6
- Views: 2157
Re: Changing background image, palette after the event
I understand that this code should be inactive and called on demand. It would be nice to show the code on the example of how it all called. I tried to enter the code welcome background after taking NMI RTS and call it in EnginePlaying function using JSR after pressing the Start button, i get a mess ...
- Tue Mar 08, 2016 7:29 am
- Forum: Newbie Help Center
- Topic: Changing background image, palette after the event
- Replies: 6
- Views: 2157
Changing background image, palette after the event
How can such that when I click on the button Press Start then loaded to another background picture such as games or other sprites palette as much as possible to make the transition. How can I change the palette, background, sprites after what some events there any lessons? It is also useful to creat...
- Mon Mar 07, 2016 5:26 am
- Forum: Newbie Help Center
- Topic: Increase and decrease the counter by one
- Replies: 2
- Views: 1352
Increase and decrease the counter by one
I do not understand how to do so before reaching the setpoint was a countdown and then also check out and start the cycle all over again with the increase. move_right .dsb 1 Rotate: MoveRight: lda move_right clc adc #$01 sta move_right cmp #$50 bcc RotateDone MoveLeft: lda move_right sec sbc #$01 st...
- Sat Mar 05, 2016 9:51 pm
- Forum: Newbie Help Center
- Topic: IF/ELSE in assembly
- Replies: 3
- Views: 2436
IF/ELSE in assembly
Hi as easy as possible to write a whole series of IF/ELSE in assembly? For example I need to check in on our cell numbers in it: MY_COLUMN = $00 ; hex column MyFunction: lda #MY_COLUMN ; hex column cmp #$00 ; $00 = $00 bne MyFunctionDone ; your code lda #MY_COLUMN ; hex column cmp #$01 ; $00 = $01 b...
- Fri Mar 04, 2016 12:12 am
- Forum: Newbie Help Center
- Topic: Collision with objects
- Replies: 15
- Views: 5086
Re: Collision with objects
I can take a variable for comparison at $2002 to create the effect of a collision but I still do not know how it can be easier to create one like something that: collision_status .dsb 1 check_collision .dsb 1 CollisionStatus: LDA #$00 STA check_collision LDA $2002 STA collision_status CMP #$C0 BNE C...
- Wed Mar 02, 2016 9:42 pm
- Forum: Newbie Help Center
- Topic: Place the sprites of 2 sections for number scores at $0250
- Replies: 7
- Views: 2168
Re: Place the sprites of 2 sections for number scores at $02
How can I manage the coordinates of these figures on the screen, I would like them to move a little down, but I go out in the middle of the screen.
- Wed Mar 02, 2016 7:07 pm
- Forum: Newbie Help Center
- Topic: Place the sprites of 2 sections for number scores at $0250
- Replies: 7
- Views: 2168
Re: Place the sprites of 2 sections for number scores at $02
I did scoring sprites numbers were taken from section 1, but how to take out a second: Scores: LDA $021B CLC ADC #$01 CMP #$F4 BNE NumberDone Ten: LDA ten CLC ADC #$01 STA ten CMP #DECIMAL_COUNT BNE NumberDone Hundred: LDA #CLEAR_COUNT STA ten LDA hundred CLC ADC #$01 STA hundred CMP #DECIMAL_COUNT ...
- Wed Mar 02, 2016 6:16 pm
- Forum: Newbie Help Center
- Topic: Place the sprites of 2 sections for number scores at $0250
- Replies: 7
- Views: 2168
Place the sprites of 2 sections for number scores at $0250
I want to draw scores on the screen so that you can make the function of scoring. I would like to take sprites number scores for 2 sections but I only available to the very mario sprites from 1 section. LoadScores: LDA #$20 STA $2006 LDA #$20 STA $2006 LDX #$00 LoadScoresLoops: LDA scores, x STA $20...
- Wed Sep 23, 2015 1:21 pm
- Forum: Newbie Help Center
- Topic: Movement of the player a few tiles
- Replies: 3
- Views: 2247
Movement of the player a few tiles
How to make to move the whole area and not one piece of it?
- Sun Sep 20, 2015 11:29 pm
- Forum: Newbie Help Center
- Topic: Collision with objects
- Replies: 15
- Views: 5086
Re: Collision with objects
Thank you very much for your help is very good knowledge, they will be useful in the future for the creation of such a player or enemy bullets, and so on, I think understood the essence of the program will continue to do. I did object detection background tile: $00 this background, other items: $01,...
- Sat Sep 19, 2015 11:14 am
- Forum: Newbie Help Center
- Topic: Collision with objects
- Replies: 15
- Views: 5086
Re: Collision with objects
I did as instructed but a collision with an object signal is not happening instead is a clash along the line of the screen in the fact of the matter is in lessons Nerdy Nights (Starting Pong) where there are clashes with lines but not with objects, and this is not enough. collision.jpg I changed it ...
- Sun Sep 13, 2015 5:50 pm
- Forum: Newbie Help Center
- Topic: Collision with objects
- Replies: 15
- Views: 5086
Re: Collision with objects
Thank you for the link, but I'm interested in writing a collision in assembler. I know it's stupid and doesn't work, i could declare: PLAYER = $0203 OBJECT = $0300 but get an error during initialization: LDA #PLAYER LDY #OBJECT CMP #OBJECT BNE Done LDA #%00000001 STA $4015 LDA #%10111111 STA $4000 L...