Sufami workshop - vozForums
vozForums
Go Back   vozForums > Games > Thảo luận chung
Reply
 
Thread Tools
  #1  
Old 12-12-2019, 21:12
asm65816 asm65816 is online now
Senior Member
 
Join Date: 07-2014
Posts: 360

Sufami workshop


Game cũ cho ai quan tâm.

Teakwondo

https://www.youtube.com/watch?v=Mbd3pHo9DU
https://www.youtube.com/watch?v=_f7-htBipao

Code:
org $828470
	LDA $186A
	BIT #$0002
	//BRA $10




//distance 
org $82A50D
	//NOP     //trigged regardless to distance
	//NOP
	
//no health limit
org $82A4F5
		LDA $15CD,y		//HP
		CMP #$0110
		//BCS $24
		NOP
		NOP
		LDA $1585		//p1 pos
		SEC
		SBC $15A5	//p2 pos
		BPL +
		DEC
		EOR #$FFFF
+
		CMP #$0060
	//	BCS $0A
		nop
		nop
		JSR $EB4D		//check input
		

	
		

org $82EB5B
	LDA $16C5,y
	BEQ _EB68
	LDA #$0000   
	STA $16C5,y
	BRA _waza 
_EB68:
	TYA                  
	BNE _EB70   
	LDA $010D  
	BRA _EB73  
_EB70:
	LDA $010F  
_EB73:
	STA $00 
	LDA $16A1,y
	//BEQ _EBE5 
	beq +
	LDA $16A1,y
	DEC 
	STA $16A1,y
	LDA $169F,y
	TAX         
	TYA       
	BNE _EB8D
+
	LDA $1892,x			//preset button, X= left pos, right pos
	BRA _EB90

	//JML new_code
_EB8D:
	LDA $18B2,x
_EB90:
	CMP $00 
	BNE _EBE3
	INX                  
	INX                  
	TXA                 
	STA $169F,y
	LDA $D762,x
	//BPL _EBE0
	nop
	nop
	
_waza:
	LDA #$0001      //disable input
	STA $169D,y
	LDA #$0000		//bne interupt string    
	STA $1657,y
	TYA                 
	EOR #$0020
	TAX                
	LDA $1585,y
	CMP $1585,x
	BEQ _EBBF   
	BCC _EBBF    
	//LDA #$FFFC
	LDA #$FFF0
	BRA _EBC2 
_EBBF:
	LDA #$000F		//dash speed + range
_EBC2:
	STA $1647,y
	LDA #$0051
	CLC                   
	ADC $1593,y 		//animation ID
	TAX                
	LDA #$0000
	STA $16A1,y
	STA $1689,y
	LDA #$0001
	JSR $ED16 
	SEC                  
	RTS            
	BRA _EBE3
_EBE0:
	STA $16A1,y
_EBE3:
	BRA  _EC02
_EBE5:
	LDA $00  
	CMP #$0400
	BNE _EC02
	LDA #$0014
	STA $16A1,y
	LDA $1591,y
	BEQ _EBFC
	LDA #$0010 
	BRA _EBFF
_EBFC:
	LDA #$0000
_EBFF:
	STA $169F,y
_EC02:
	CLC                   
//	RTS   

	
	

//no health limit move
org $82A4CC
	LDA $16C5,y
	NOP
	NOP



//###################
org $A08000
new_code:

	LDA #$2000	//select button
	STA $1892
	STA $18A2
	STA $18B2
	STA $18C2
	LDA #$0000
	STA $1894
	STA $18A4
	STA $18B4
	STA $18C4
	STA $1896
	STA $18A6
	STA $18B6
	STA $18C6
	LDA $1892,x
	JML _EB90
	
init_move:
	LDX #$0000
	
	
org $80C91B
	db $20		//select
org $80C91D
	db $20
org $80C92B	
	db $20
org $80C92D
	db $20
Reply With Quote
  #2  
Old 12-12-2019, 21:15
asm65816 asm65816 is online now
Senior Member
 
Join Date: 07-2014
Posts: 360

Ghost chaser Densei

https://www.youtube.com/watch?v=Qb1lv9NIfRA
https://www.youtube.com/watch?v=_MO4yT8N4t4

Code:
org $81C7DA
	adc #$05FF	//restore energy
	
//disturb shooting
org $81B982
	JML newcode

//########################
org $E0E9B0
newcode:
	LDA $8E
	CMP #$3030
	BEQ +
	LDA $90
	CMP #$3030
	BEQ +
	LDA $8E
	BIT #$0020
	BEQ _check_R
	SEP #$20
	LDA #$01
	STA $7E41F1
_ret:
	LDA $90
	JML $81B990
	
+
	JML $81B9A8

_check_R:
	BIT #$0010
	BEQ _check_start
	SEP #$20
	LDA #$FF
	STA $7E41F1
	BRA _ret

_check_start:
	BIT #$1000
	BEQ +
	SEP #$20
	LDA #$01
	STA $7E41F0
+
	BRA _ret
	
	
//shooting bullet
org $C611E2
	db $FF

//shoot speed
org $C61206
	db $0F

//no hold
org $C60C6E
	//dw $FFFF

//always red health
org $808ACE
	LDA $41A4
	CMP $05FB
	nop
	nop
org $808AE2
	nop
	nop
	INY
	LDX #$0010
	CMP #$3800
	nop
	nop
Reply With Quote
  #3  
Old 12-12-2019, 21:19
asm65816 asm65816 is online now
Senior Member
 
Join Date: 07-2014
Posts: 360

Biker Mice from Mars

https://www.youtube.com/watch?v=7MckQqsafus

Code:
//No dec ammo

org $8398B6
	NOP
	NOP
	NOP

//shot unlimited
org $83987C
	CMP #$FFFF

//no lap


//ammo
org $808E08

	JML always_ammo

org $A08000
always_ammo:
	LDA #$0001
	STA $7E17C6
	STZ $38,x
	STZ $3A,x
	JML $808E0E
Reply With Quote
  #4  
Old Yesterday, 05:18
asm65816 asm65816 is online now
Senior Member
 
Join Date: 07-2014
Posts: 360

Zenki Den-ei Raibu

https://www.youtube.com/watch?v=QxCT4OPMDm4

Code:
//Chiaki live
org $C09C13
	INC

org $C07FC4
	//JML new_code4

//disable check stage tomahawk
org $C063A9
	LDA $1D2E

//change cgram
org $C0C939
	JML new_code5


//gfx dma
org $C01740
	JML dma
//kana shibari
org $C06C39	
	JML special

org $C062F7
	LDA $1E3F,x	//waza
	CMP #$01
	BCC _631B
	BIT $FB    
	BVC _6310	
	LDA $1E25,x	//HP
	CMP $22
	BCC _6310	//low HP can't use waza
	JSR $7BBC
	LDA #$17
	BRA _6324
_6310:
	BIT $FC   
	BPL _631B  //bmi button B
	JSR $7BBC
	LDA #$1B      
	BRA _6324
_631B:
	LDA $FC  
	ASL       
	ORA $FB  
	BPL _633F
	LDA #$13  
_6324:
       	LDY #$FF 
	STY $1DEE
	LDY #$00       
	JSR $6399  
	TXA                  
	EOR #$20     
	TAY                  
	REP #$20     
	LDA #$0000
	STA $1F6C,y
	STA $1F6E,y
	SEP #$20        
_633F:
	LDA $1E37,x
	ASL             
	TAY                     
	REP #$20        
	LDA $A677,y


org $C06824
	//JML new_code
	
org $C06220
	//JML new_code2	

org $C067AD
	JML new_code3

//disable compare
org $C0681B
	CPX #$80
	NOP
	NOP

//gfx transfer flag
org $C00319
	JML trans_flag

org $E00000
new_code3:
	LDA $49
	CMP #$18	//start  up
	BNE +
	LDA #$14
	STA $1D2E	//tomahawk
	LDA #$0D
	STA $1E31
	JML $C067B7
+
	CMP #$14	//start  down
	BNE +
	LDA #$12
	STA $1D2E
	LDA #$0D	//Ludra
	STA $1E31
	JML $C067B7
+
	CMP #$12	//start left
	BNE +
	LDA #$0E	//chou kaenjin
	STA $1E31
	JML $C067B7
+
	CMP #$11	//start right
	BNE +
	LDA #$08
	STA $1E31
	JML $C067B7
+
	CMP #$20	//select
	BNE +
	INC $1E3F		//power
+
	LDA $1E2C	//vajra
	AND #$08
	JML $C067B2

new_code:
	LDA $49
	CMP #$08  //up	
	BNE +
	LDA #$38	//tomahawk
	STA $1E3E
	LDA $6E
	JML $C06829
+
	CMP #$04 	//down 
	BNE +
	REP #$20
	LDA #$3427
	STA $1A1C
	INC
	STA $1A5C
	SEP #$20
	LDA #$03	//rudra
	STA $1E3E
	LDA $6E
	JML $C06829
+
	CMP #$02	// left 
	BNE +
	REP #$20
	STA $1E3E
	LDA #$2C27
	STA $1A1C
	INC
	STA $1A5C
	SEP #$20
	LDA #$02	//super kaenjin
	STA $1E3E
	LDA $6E
	JML $C06829
+
	CMP #$01	//right	
	BNE +
	REP #$20
	LDA #$2827
	STA $1A1C
	INC
	STA $1A5C
	SEP #$20
	LDA #$01	//kaenjin
	STA $1E3E
	LDA $6E
	JML $C06829
+
	SEP #$20
	STZ $1E3E
	LDA $6E
	JML $C06829


new_code2:
	LDA $49
	CMP #$28  //up	+ select
	BNE +
	LDA #$38	//tomahawk
	STA $1E3E
	STA $24
	JML $C06225
+
	CMP #$24 	//down + select
	BNE +
	REP #$20
	LDA #$3427
	STA $1A1C
	INC
	STA $1A5C
	SEP #$20
	LDA #$03	//rudra
	STA $1E3E
	STA $24	
	JML $C06225
+
	CMP #$22	// left + select
	BNE +
	REP #$20
	STA $1E3E
	LDA #$2C27
	STA $1A1C
	INC
	STA $1A5C
	SEP #$20
	LDA #$02	//super kaenjin
	STA $1E3E
	STA $24
	JML $C06225
+
	CMP #$21	//right	+ select
	BNE +
	REP #$20
	LDA #$2827
	STA $1A1C
	INC
	STA $1A5C
	SEP #$20
	LDA #$01	//kaenjin
	STA $1E3E
	STA $24
	JML $C06225
+
	CMP #$10
	BNE +
	REP #$20
	LDA #$0000
	STA $037C
	SEP #$20
+
	LDA $1E3E,x
	STA $24
	JML $C06225


new_code4:
	PHA
	LDA $1D2E
	CMP #$14 	//tomahawk
	BCC +
	PLA
	REP #$10
	JML $C07FC9
+
	PLA
	STA $1E39,x
	REP #$10
	JML $C07FC9

new_code5:
	CPX #$079A
	BEQ +
-
normal_clr:
	LDA $B97D,x
	STA ($03),y
	JML $C0C93E

+
	LDA $48
	AND #$FF00
	CMP #$2000	//select
	BNE +
	LDA #$03E0	//green
	STA $03FA
	JML $C0C93E
+
	CMP #$1000	//start	
	BNE +
	LDA #$7C00	//blue
	STA $03FA
	JML $C0C93E
+
	CMP #$0800	//up
	BNE +
	LDA #$FFFF	//white
	STA $03FA
	JML $C0C93E
+
	CMP #$0400	//down
	BNE +
	LDA #$7EE0	//water
	STA $03FA
	JML $C0C93E
+
	LDA $48
	AND #$00FF
	CMP #$0020	//L
	BNE +
	LDA #$001B	//red
	STA $03FA
	JML $C0C93E	
+
	
	CMP #$0010	//R
	BNE +
	LDA #$03FF	//yellow
	STA $03FA
	JML $C0C93E	
+
	BRL -
	

trans_flag:
	REP #$20
	LDA $03
	PHA
	TYA
	CLC
	ADC $01,s
	CMP #$5040
	BEQ +
-
	PLA
	SEP #$20
	LDA $1C56
	PHA
	JML $C0031D
+
	LDA #$ABCD
	STA $1D30
	BRA -
	
dma:
	REP #$20
	LDA $1D30
	CMP #$ABCD
	BEQ +
	SEP #$20
	LDA $24
	STA $4305
	JML $C01745
+
	LDA $48
	CMP #$3000	//start + select
	BNE +
	LDA #$1801
	STA $4300
	LDA #(nude)
	STA $4302
	LDA #$0800
	STA $4305
	LDA $26
	STA $2116
	STZ $1D30
	SEP #$20
	LDA #$E0
	STA $4304
	JML $C01521
+
	LDA #$1801
	STA $4300
	LDA #(pantsu)
	STA $4302
	LDA #$0800
	STA $4305
	LDA $26
	STA $2116
	STZ $1D30
	SEP #$20
	LDA #$E0
	STA $4304
	JML $C01521
	
special:
	LDA $48
	CMP #$30  //L + R
	BNE +
	LDA #$AE
	STA $14A0
-
	LDA $14A0,x
	REP #$30
	JML $C06C3E
+
	LDA $49
	CMP #$22	//select left
	BNE +
	LDA #$AF
	STA $14A0
	BRA -
+
	CMP #$21	//select right
	BNE +
	LDA #$B0
	STA $14A0
+
	BRA -
Reply With Quote
Đang tải...
  #5  
Old Today, 06:06
asm65816 asm65816 is online now
Senior Member
 
Join Date: 07-2014
Posts: 360

Power Ranger the fighting

https://www.youtube.com/watch?v=QTnlEMZjOUQ

https://github.com/yugisokubodai/asm...aster/move.asm

Code:
org $00C063
	JML newcode

//###########
org $B08010

newcode:
	PHX
	LDA $7E05E0
	TAX
	PHP
	JSR (move,x)
return:
	PLP
	PLX
	LDA $E2
	BIT #$1000
	BEQ _C0AD
	JML $00C06A

_C0AD:
	JML $00C0AD


move:
	dw thunder
	dw tiger
	dw ninja
	dw lip
	dw shogun
	dw gold
	dw silver
	dw zed
	
thunder:
	LDA $E2
	CMP #$0030
	BNE +
	LDA #$0030
	STA $7E06A0
	LDA #$008A
	STA $7E1A00	
	BRA end_thunder
+
	CMP #$0010
	BNE +
	LDA #$0003
	STA $7E1A00
	BRA end_thunder
+
	CMP #$0410
	BNE +
	LDA #$0008
	STA $7E1A00
	BRA end_thunder
+
	CMP #$0020
	BNE +
	LDA #$0004
	STA $7E1A00
	BRA end_thunder
+
	CMP #$2000
	BNE +
	LDA #$008A
	STA $7E1A00
	BRA end_thunder
+
end_thunder:
	RTS
tiger:
	LDA $E2
	CMP #$0030
	BNE +
	LDA #$0030
	STA $7E06A0
	LDA #$008A
	STA $7E1A00	
	BRA end_tiger
+
	CMP #$0020	//L
	BNE +
	LDA #$0004
	STA $7E1A00
	BRA end_tiger
+
	CMP #$0010	//R
	BNE +
	LDA #$0002
	STA $7E1A00
	BRA end_tiger
+
	CMP #$2000  //select
	BNE +
	LDA #$008A
	STA $7E1A00
+
end_tiger:	
	RTS
	
ninja:
	LDA $E2
	CMP #$0030
	BNE +
	LDA #$0030
	STA $7E06A0
	LDA #$008A
	STA $7E1A00	
	BRA end_ninja
+
	CMP #$0020	//L
	BNE +
	LDA #$0008
	STA $7E1A00
	BRA end_ninja
+
	CMP #$0010		//R
	BNE +
	LDA #$0007
	STA $7E1A00
	BRA end_ninja
+
	CMP #$2000
	BNE +
	LDA #$008A
	STA $7E1A00
+
end_ninja:
	RTS
	
lip:
	LDA $E2
	CMP #$0030
	BNE +
	LDA #$008A
	STA $7E1A00
	LDA #$0030
	STA $7E06A0
	BRA end_lip
+
end_lip:
	RTS
	
shogun:
	RTS

gold:
	RTS

silver:
	RTS
	
zed:
	LDA $E2
	CMP #$0030
	BNE +
	LDA #$0030
	STA $7E06A0
	LDA #$008A
	STA $7E1A00	
	BRA end_zed
+
	CMP #$0010
	BNE +
	LDA #$0002		//nage
	STA $7E1A00
	BRA end_zed
+
	CMP #$0020
	BNE +
	LDA #$0011	//kakushi
	STA $7E1A00
	BRA end_zed
+
	CMP #$0410
	BNE +
	LDA #$0005	//hand2
	STA $7E1A00
	BRA end_zed
+
	CMP #$0420
	BNE +
	LDA #$0008	//thunder
	STA $7E1A00
	BRA end_zed
+
	CMP #$0120
	BNE +
	LDA #$0009	//thunder 2
	STA $7E1A00
	BRA end_zed
+
	CMP #$0220
	BNE +
	LDA #$0004	//hand
	STA $7E1A00
	BRA end_zed
+
	CMP #$0110
	BNE +
	LDA #$4040
	STA $7E1A00
	BRA end_zed
+
end_zed:
	RTS
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +7. The time now is 06:12.
Chịu trách nhiệm nội dung: Bạch Thành Trung © 2019 Công ty TNHH Thật Vi Diệu
ĐC tầng 4, số 6-8 Đường D2, Bình Thạnh, Hồ Chí Minh, Việt Nam - SĐT 0981323799 - MST 0313906593
Giấy phép thiết lập MXH số 334/GP-BTTTT, Ký ngày: 19/08/2019