[pypy-svn] r56423 - in pypy/dist/pypy/lang/gameboy: . rom/rom1 rom/rom2 rom/rom3 rom/rom4 rom/rom5 rom/rom6 rom/rom7 rom/rom8 rom/rom9 test tool

arigo at codespeak.net arigo at codespeak.net
Thu Jul 10 18:03:01 CEST 2008


Author: arigo
Date: Thu Jul 10 18:03:00 2008
New Revision: 56423

Modified:
   pypy/dist/pypy/lang/gameboy/   (props changed)
   pypy/dist/pypy/lang/gameboy/cartridge.py   (props changed)
   pypy/dist/pypy/lang/gameboy/constants.py   (props changed)
   pypy/dist/pypy/lang/gameboy/cpu.py   (props changed)
   pypy/dist/pypy/lang/gameboy/gameboy.py   (props changed)
   pypy/dist/pypy/lang/gameboy/gameboyTest.py   (props changed)
   pypy/dist/pypy/lang/gameboy/gameboy_implementation.py   (props changed)
   pypy/dist/pypy/lang/gameboy/interrupt.py   (props changed)
   pypy/dist/pypy/lang/gameboy/joypad.py   (props changed)
   pypy/dist/pypy/lang/gameboy/ram.py   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom1/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom1/readme.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom2/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom2/readme-1.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom3/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom3/readme-2.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom4/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom4/readme-3.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom5/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom5/readme.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom6/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom6/readme-1.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom7/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom7/readme.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom8/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom8/readme.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom9/   (props changed)
   pypy/dist/pypy/lang/gameboy/rom/rom9/readme.txt   (contents, props changed)
   pypy/dist/pypy/lang/gameboy/serial.py   (props changed)
   pypy/dist/pypy/lang/gameboy/sound.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_cartridge.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_cpu.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_cpu_2.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_gameboy.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_gameboy_implementaton.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_interrupt.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_joypad.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_memory_bank_controller.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_ram.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_register.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_rom.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_serial.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_sound.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_timer.py   (props changed)
   pypy/dist/pypy/lang/gameboy/test/test_video.py   (props changed)
   pypy/dist/pypy/lang/gameboy/timer.py   (props changed)
   pypy/dist/pypy/lang/gameboy/tool/   (props changed)
   pypy/dist/pypy/lang/gameboy/tool/__init__.py   (props changed)
   pypy/dist/pypy/lang/gameboy/tool/autopath.py   (props changed)
   pypy/dist/pypy/lang/gameboy/video.py   (props changed)
Log:
fixeol


Modified: pypy/dist/pypy/lang/gameboy/rom/rom1/readme.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom1/readme.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom1/readme.txt	Thu Jul 10 18:03:00 2008
@@ -1,17 +1,17 @@
-============
-Gameboy ROM1
-============
-
-
-Description
------------
-This is a raw ROM, meaning it contains no valid Gameboy header, just 
-instructions. Addressing is relative, so the ROM can be loaded anywhere in 
-memory.
-
-
-Disassembly
------------
-3E 01       LD  A, 1
-06 01       LD  B, 1
+============
+Gameboy ROM1
+============
+
+
+Description
+-----------
+This is a raw ROM, meaning it contains no valid Gameboy header, just 
+instructions. Addressing is relative, so the ROM can be loaded anywhere in 
+memory.
+
+
+Disassembly
+-----------
+3E 01       LD  A, 1
+06 01       LD  B, 1
 80          ADD A, B
\ No newline at end of file

Modified: pypy/dist/pypy/lang/gameboy/rom/rom2/readme-1.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom2/readme-1.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom2/readme-1.txt	Thu Jul 10 18:03:00 2008
@@ -1,17 +1,17 @@
-============
-Gameboy ROM2
-============
-
-
-Description
------------
-This is a raw ROM, meaning it contains no valid Gameboy header, just 
-instructions. Addressing is relative, so the ROM can be loaded anywhere in 
-memory.
-
-
-Disassembly
------------
-3E 00       LD  A, 0
-06 00       LD  B, 0
+============
+Gameboy ROM2
+============
+
+
+Description
+-----------
+This is a raw ROM, meaning it contains no valid Gameboy header, just 
+instructions. Addressing is relative, so the ROM can be loaded anywhere in 
+memory.
+
+
+Disassembly
+-----------
+3E 00       LD  A, 0
+06 00       LD  B, 0
 80          ADD A, B
\ No newline at end of file

Modified: pypy/dist/pypy/lang/gameboy/rom/rom3/readme-2.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom3/readme-2.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom3/readme-2.txt	Thu Jul 10 18:03:00 2008
@@ -1,17 +1,17 @@
-============
-Gameboy ROM3
-============
-
-
-Specifications
---------------
-Filename:     noptest.gb
-Description:  Runs a series of NOP instructions and then at the end performs an 
-              endless loop.
-ROM type:     NO MBC (32kB ROM, no RAM)
-
-
-Instructions used
------------------
-jp
-nop
+============
+Gameboy ROM3
+============
+
+
+Specifications
+--------------
+Filename:     noptest.gb
+Description:  Runs a series of NOP instructions and then at the end performs an 
+              endless loop.
+ROM type:     NO MBC (32kB ROM, no RAM)
+
+
+Instructions used
+-----------------
+jp
+nop

Modified: pypy/dist/pypy/lang/gameboy/rom/rom4/readme-3.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom4/readme-3.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom4/readme-3.txt	Thu Jul 10 18:03:00 2008
@@ -1,45 +1,45 @@
-============
-Gameboy ROM4
-============
-
-
-Specifications
---------------
-Filename:     rom4.gb
-Description:  This ROM is created to test the DI and HALT instructions. It also 
-              uses the LCDC register to turn off the screen.
-ROM type:     NO MBC (32kB ROM, no RAM)
-
-
-Instructions used
------------------
-ld
-jp
-nop
-res
-di
-halt
-
-
-Memory registers used
----------------------
-$ff40 (LCDC register, used to turn of screen)
-
-
-Short information
------------------
-HALT stops the CPU until an interrupt occurs. Nintendo recommends using this 
-command in your main game loop in order to save battery power while the CPU has 
-nothing else to do.
-
-When an interrupt occurs while in HALT, the CPU starts back up and pushes the 
-Program Counter onto the stack before servicing the interrupt(s). Except it 
-doesn't push the address after HALT as one might expect but rather the address 
-of HALT itself.
-
-Nintendo also recommends that you put a NOP after HALT commands. The reason for 
-this is that the Program Counter will not increment properly (CPU bug) if you 
-try to do a HALT while IME = 0 and an interrupt is pending. A single-byte 
-instruction immediately following HALT will get executed twice if IME = 0 and an 
-interrupt is pending. If the instruction following HALT is a multi-byte 
-instruction then the game could hang or registers could get scrambled.
+============
+Gameboy ROM4
+============
+
+
+Specifications
+--------------
+Filename:     rom4.gb
+Description:  This ROM is created to test the DI and HALT instructions. It also 
+              uses the LCDC register to turn off the screen.
+ROM type:     NO MBC (32kB ROM, no RAM)
+
+
+Instructions used
+-----------------
+ld
+jp
+nop
+res
+di
+halt
+
+
+Memory registers used
+---------------------
+$ff40 (LCDC register, used to turn of screen)
+
+
+Short information
+-----------------
+HALT stops the CPU until an interrupt occurs. Nintendo recommends using this 
+command in your main game loop in order to save battery power while the CPU has 
+nothing else to do.
+
+When an interrupt occurs while in HALT, the CPU starts back up and pushes the 
+Program Counter onto the stack before servicing the interrupt(s). Except it 
+doesn't push the address after HALT as one might expect but rather the address 
+of HALT itself.
+
+Nintendo also recommends that you put a NOP after HALT commands. The reason for 
+this is that the Program Counter will not increment properly (CPU bug) if you 
+try to do a HALT while IME = 0 and an interrupt is pending. A single-byte 
+instruction immediately following HALT will get executed twice if IME = 0 and an 
+interrupt is pending. If the instruction following HALT is a multi-byte 
+instruction then the game could hang or registers could get scrambled.

Modified: pypy/dist/pypy/lang/gameboy/rom/rom5/readme.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom5/readme.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom5/readme.txt	Thu Jul 10 18:03:00 2008
@@ -1,35 +1,35 @@
-============
-Gameboy ROM5
-============
-
-
-Specifications
---------------
-Filename:     rom5.gb
-Description:  This ROM is created to test the conditional jump instructions. It 
-              also includes an invalid opcode ($DD) which is used for debugging 
-              purposes!
-ROM type:     NO MBC (32kB ROM, no RAM)
-
-
-Special notes
--------------
-IMPORTANT: This ROM contains an invalid opcode ($DD) which we use to trigger the 
-emulator into a "breakpoint". When executing this ROM, simply treat the $DD 
-bytes as NOP ($00) instructions, but also print out the registers and CPU 
-status.
-
-This ROM also uses the carry and zero flags, so make sure that the work correctly.
-
-
-Instructions used
------------------
-ld
-jp
-jr
-inc
-dec
-nop
-di
-halt
+============
+Gameboy ROM5
+============
+
+
+Specifications
+--------------
+Filename:     rom5.gb
+Description:  This ROM is created to test the conditional jump instructions. It 
+              also includes an invalid opcode ($DD) which is used for debugging 
+              purposes!
+ROM type:     NO MBC (32kB ROM, no RAM)
+
+
+Special notes
+-------------
+IMPORTANT: This ROM contains an invalid opcode ($DD) which we use to trigger the 
+emulator into a "breakpoint". When executing this ROM, simply treat the $DD 
+bytes as NOP ($00) instructions, but also print out the registers and CPU 
+status.
+
+This ROM also uses the carry and zero flags, so make sure that the work correctly.
+
+
+Instructions used
+-----------------
+ld
+jp
+jr
+inc
+dec
+nop
+di
+halt
 $DD
\ No newline at end of file

Modified: pypy/dist/pypy/lang/gameboy/rom/rom6/readme-1.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom6/readme-1.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom6/readme-1.txt	Thu Jul 10 18:03:00 2008
@@ -1,31 +1,31 @@
-============
-Gameboy ROM6
-============
-
-
-Specifications
---------------
-Filename:     rom6.gb
-Description:  This ROM is created to test the implementation of ROM cartridge 
-              with an MBC1 controller.
-ROM type:     MBC1 + RAM (64kB ROM, 32kB RAM)
-
-
-Special notes
--------------
-This ROM uses call and ret instructions, so this means that the emulator will 
-also need to implement and support a stack.
-
-Instructions used
------------------
-ld
-jp
-jr
-inc
-dec
-nop
-di
-halt
-$DD
-call
+============
+Gameboy ROM6
+============
+
+
+Specifications
+--------------
+Filename:     rom6.gb
+Description:  This ROM is created to test the implementation of ROM cartridge 
+              with an MBC1 controller.
+ROM type:     MBC1 + RAM (64kB ROM, 32kB RAM)
+
+
+Special notes
+-------------
+This ROM uses call and ret instructions, so this means that the emulator will 
+also need to implement and support a stack.
+
+Instructions used
+-----------------
+ld
+jp
+jr
+inc
+dec
+nop
+di
+halt
+$DD
+call
 ret
\ No newline at end of file

Modified: pypy/dist/pypy/lang/gameboy/rom/rom7/readme.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom7/readme.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom7/readme.txt	Thu Jul 10 18:03:00 2008
@@ -1,10 +1,10 @@
-============
-Gameboy ROM7
-============
-
-
-Specifications
---------------
-Filename:     rom7.gb
-Description:  This ROM is created to test the screen background.
+============
+Gameboy ROM7
+============
+
+
+Specifications
+--------------
+Filename:     rom7.gb
+Description:  This ROM is created to test the screen background.
 ROM type:     NOMBC
\ No newline at end of file

Modified: pypy/dist/pypy/lang/gameboy/rom/rom8/readme.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom8/readme.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom8/readme.txt	Thu Jul 10 18:03:00 2008
@@ -1,10 +1,10 @@
-============
-Gameboy ROM8
-============
-
-
-Specifications
---------------
-Filename:     rom8.gb
-Description:  This ROM is created to test graphics background of a Gameboy.
+============
+Gameboy ROM8
+============
+
+
+Specifications
+--------------
+Filename:     rom8.gb
+Description:  This ROM is created to test graphics background of a Gameboy.
 ROM type:     MBC1 + RAM (64kB ROM, 32kB RAM)
\ No newline at end of file

Modified: pypy/dist/pypy/lang/gameboy/rom/rom9/readme.txt
==============================================================================
--- pypy/dist/pypy/lang/gameboy/rom/rom9/readme.txt	(original)
+++ pypy/dist/pypy/lang/gameboy/rom/rom9/readme.txt	Thu Jul 10 18:03:00 2008
@@ -1,10 +1,10 @@
-============
-Gameboy ROM9
-============
-
-
-Specifications
---------------
-Filename:     rom9.gb
-Description:  This ROM is created to test graphics background of a Gameboy and sprites.
+============
+Gameboy ROM9
+============
+
+
+Specifications
+--------------
+Filename:     rom9.gb
+Description:  This ROM is created to test graphics background of a Gameboy and sprites.
 ROM type:     MBC1 + RAM (64kB ROM, 32kB RAM)
\ No newline at end of file



More information about the Pypy-commit mailing list