Nes Programming
วันนี้มาลองดูว่า เขียนโปรแกรมบน nes ทำอย่างไง ก็มี link สอนอยู่ที่ //blog.tozt.net/2014/10/13/writing-an-nes-game-part-1/ แปะไว้ศึกษาต่อ
แล้วก็มีต้วอย่างไฟล์ให้ compile ด้วย ประกอบด้วย sprites.s เก็บ source code sprites.chr เก็บ ข้อมูลgraphic
การ compile ก็ดูยุ่งยากเหมือนกัน เริ่มจาก ไปหา wla-dx ที่ //www.villehelin.com/wla.html หรือ https://github.com/vhelin/wla-dx
1. wla-6502 -o test.s จะไ้ด้ test.o 2. wlalink linkfile test.rom จะได้ test.rom แต่ไฟล์ linkfile ภายในต้องเขียนประมาณนี้ [objects] test.o 3. ใส่ header ไฟล์ด้วย cat header.bin test.rom > test.nes
หา emulator จาก //www.bannister.org/software/nestopia.htm
ทดลอง run ก็จะประมาณนี้ สามารถ เลื่อน กากบาทได้
Create Date : 02 กรกฎาคม 2558 |
Last Update : 2 กรกฎาคม 2558 19:57:10 น. |
|
0 comments
|
Counter : 744 Pageviews. |
|
|