From 34ceaac71d32baace82f1e6de8fd4b252fb92a84 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Thu, 13 Feb 2020 18:18:15 +0100 Subject: =?UTF-8?q?Call=5FLoadTempTileMapToTileMap=20=E2=86=92=20SafeLoadT?= =?UTF-8?q?empTileMapToTileMap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stupid name is stupid smh tbh fam. --- engine/printer/printer.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/printer/printer.asm') diff --git a/engine/printer/printer.asm b/engine/printer/printer.asm index 588699863..2078ab1b3 100644 --- a/engine/printer/printer.asm +++ b/engine/printer/printer.asm @@ -231,7 +231,7 @@ PrintUnownStamp: farcall PlaceUnownPrinterFrontpic ln a, 0, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint - call Call_LoadTempTileMapToTileMap + call SafeLoadTempTileMapToTileMap call Printer_ResetJoypadRegisters ld a, 18 / 2 ld [wPrinterQueueLength], a @@ -259,7 +259,7 @@ PrintUnownStamp: pop af ldh [hVBlank], a call Printer_CleanUpAfterSend - call Call_LoadTempTileMapToTileMap + call SafeLoadTempTileMapToTileMap xor a ldh [rIF], a pop af @@ -418,7 +418,7 @@ _PrintDiploma: ln a, 0, 3 ; to be loaded to wPrinterMargins call Printer_PrepareTileMapForPrint - call Call_LoadTempTileMapToTileMap + call SafeLoadTempTileMapToTileMap call Printer_ResetJoypadRegisters ld a, 18 / 2 -- cgit v1.2.3 From 26b8bf003e3523fee94c4c18447ea55f9eb1d429 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Thu, 13 Feb 2020 18:30:13 +0100 Subject: Standardize on lowercase Tilemap and Attrmap We used to have a mixture of TileMap and and Tilemap, as well as the similar AttrMap. Standardize on one. --- engine/printer/printer.asm | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'engine/printer/printer.asm') diff --git a/engine/printer/printer.asm b/engine/printer/printer.asm index 2078ab1b3..873c72b86 100644 --- a/engine/printer/printer.asm +++ b/engine/printer/printer.asm @@ -26,12 +26,12 @@ Printer_CleanUpAfterSend: ld [wPrinterOpcode], a ret -Printer_PrepareTileMapForPrint: +Printer_PrepareTilemapForPrint: push af call Printer_StartTransmission pop af ld [wPrinterMargins], a - call Printer_CopyTileMapToBuffer + call Printer_CopyTilemapToBuffer ret Printer_ExitPrinter: @@ -63,7 +63,7 @@ PrintDexEntry: ln a, 1, 0 ld [wPrinterMargins], a farcall PrintPage1 - call ClearTileMap + call ClearTilemap ld a, %11100100 call DmgToCgbBGPals call DelayFrame @@ -152,7 +152,7 @@ PrintPCBox: ldh [hBGMapMode], a call PrintPCBox_Page1 ln a, 1, 0 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint call Printer_ResetRegistersAndStartDataSend jr c, .cancel @@ -163,7 +163,7 @@ PrintPCBox: ldh [hBGMapMode], a call PrintPCBox_Page2 ln a, 0, 0 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint call Printer_ResetRegistersAndStartDataSend jr c, .cancel @@ -175,7 +175,7 @@ PrintPCBox: ldh [hBGMapMode], a call PrintPCBox_Page3 ln a, 0, 0 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint call Printer_ResetRegistersAndStartDataSend jr c, .cancel @@ -187,7 +187,7 @@ PrintPCBox: ldh [hBGMapMode], a call PrintPCBox_Page4 ln a, 0, 3 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint call Printer_ResetRegistersAndStartDataSend .cancel pop af @@ -227,11 +227,11 @@ PrintUnownStamp: ld [hl], $4 xor a ldh [hBGMapMode], a - call LoadTileMapToTempTileMap + call LoadTilemapToTempTilemap farcall PlaceUnownPrinterFrontpic ln a, 0, 0 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint - call SafeLoadTempTileMapToTileMap + call Printer_PrepareTilemapForPrint + call SafeLoadTempTilemapToTilemap call Printer_ResetJoypadRegisters ld a, 18 / 2 ld [wPrinterQueueLength], a @@ -259,7 +259,7 @@ PrintUnownStamp: pop af ldh [hVBlank], a call Printer_CleanUpAfterSend - call SafeLoadTempTileMapToTileMap + call SafeLoadTempTilemapToTilemap xor a ldh [rIF], a pop af @@ -291,7 +291,7 @@ PrintMail: ldh [hBGMapMode], a ln a, 1, 3 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint ld hl, hVBlank ld a, [hl] push af @@ -304,7 +304,7 @@ PrintMail: pop af ldh [hVBlank], a call Printer_CleanUpAfterSend - call Printer_CopyBufferToTileMap + call Printer_CopyBufferToTilemap xor a ldh [rIF], a @@ -333,7 +333,7 @@ PrintPartymon: ldh [hBGMapMode], a farcall PrintPartyMonPage1 ln a, 1, 0 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint ld hl, hVBlank ld a, [hl] @@ -354,7 +354,7 @@ PrintPartymon: ldh [hBGMapMode], a farcall PrintPartyMonPage2 ln a, 0, 3 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint ld a, 18 / 2 ld [wPrinterQueueLength], a @@ -365,7 +365,7 @@ PrintPartymon: ldh [hVBlank], a call Printer_CleanUpAfterSend - call Printer_CopyBufferToTileMap + call Printer_CopyBufferToTilemap xor a ldh [rIF], a pop af @@ -399,7 +399,7 @@ _PrintDiploma: ld [hl], %0100 ln a, 1, 0 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint + call Printer_PrepareTilemapForPrint call Printer_ResetJoypadRegisters ld a, 18 / 2 @@ -410,15 +410,15 @@ _PrintDiploma: ld c, 12 call DelayFrames - call LoadTileMapToTempTileMap + call LoadTilemapToTempTilemap xor a ldh [hBGMapMode], a farcall PrintDiplomaPage2 ln a, 0, 3 ; to be loaded to wPrinterMargins - call Printer_PrepareTileMapForPrint - call SafeLoadTempTileMapToTileMap + call Printer_PrepareTilemapForPrint + call SafeLoadTempTilemapToTilemap call Printer_ResetJoypadRegisters ld a, 18 / 2 @@ -473,15 +473,15 @@ CheckCancelPrint: scf ret -Printer_CopyTileMapToBuffer: +Printer_CopyTilemapToBuffer: hlcoord 0, 0 - ld de, wPrinterTileMapBuffer + ld de, wPrinterTilemapBuffer ld bc, SCREEN_WIDTH * SCREEN_HEIGHT call CopyBytes ret -Printer_CopyBufferToTileMap: - ld hl, wPrinterTileMapBuffer +Printer_CopyBufferToTilemap: + ld hl, wPrinterTilemapBuffer decoord 0, 0 ld bc, SCREEN_WIDTH * SCREEN_HEIGHT call CopyBytes -- cgit v1.2.3 From 2a8c969bc7b10d9cc4c29f6660726ce1c943a597 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 21 Feb 2020 15:56:47 +0100 Subject: Fix some comments and inmediates --- engine/printer/printer.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/printer/printer.asm') diff --git a/engine/printer/printer.asm b/engine/printer/printer.asm index 873c72b86..e26130098 100644 --- a/engine/printer/printer.asm +++ b/engine/printer/printer.asm @@ -146,7 +146,7 @@ PrintPCBox: ld hl, hVBlank ld a, [hl] push af - ld [hl], 4 + ld [hl], $4 xor a ldh [hBGMapMode], a @@ -295,7 +295,7 @@ PrintMail: ld hl, hVBlank ld a, [hl] push af - ld [hl], %0100 + ld [hl], $4 ld a, 18 / 2 ld [wPrinterQueueLength], a @@ -338,7 +338,7 @@ PrintPartymon: ld hl, hVBlank ld a, [hl] push af - ld [hl], %0100 + ld [hl], $4 ld a, 16 / 2 ld [wPrinterQueueLength], a @@ -396,7 +396,7 @@ _PrintDiploma: ld hl, hVBlank ld a, [hl] push af - ld [hl], %0100 + ld [hl], $4 ln a, 1, 0 ; to be loaded to wPrinterMargins call Printer_PrepareTilemapForPrint -- cgit v1.2.3