use_sh2drc ?= 1
asm_memory = 1
-#asm_render = 1
+asm_render = 1
asm_ym2612 = 1
asm_misc = 1
asm_cdpico = 1
@ .equiv START_ROW, 1\r
@ .equiv END_ROW, 27\r
@ one row means 8 pixels. If above example was used, (27-1)*8=208 lines would be rendered.\r
-.include "port_config.s"\r
-\r
+#ifndef START_ROW\r
+#define START_ROW 0\r
+#endif\r
+#ifndef END_ROW\r
+#define END_ROW 28\r
+#endif\r
+\r
+.text\r
+.align 2\r
\r
.global BackFillFull @ int reg7\r
\r
* this is highly specialized, be careful if changing related C code!\r
*/\r
\r
-.include "port_config.s"\r
-\r
.extern Pico\r
.extern PicoOpt\r
.extern HighCol\r
\r
.fl_no32colRGB555:\r
\r
-.if UNALIGNED_DRAWLINEDEST\r
+#ifdef UNALIGNED_DRAWLINEDEST\r
@ this is basically for Gizmondo, which has unaligned odd lines in the framebuffer\r
tst r0, #2\r
bne .fl_RGB555u\r
-.endif\r
+#endif\r
\r
.fl_loopRGB555:\r
ldr r12, [r1], #4\r
mov r9, #0x3900 @ f800 07e0 001f | e000 0780 001c | 3800 01e0 0007\r
orr r9, r9, #0x00e7\r
\r
-.if UNALIGNED_DRAWLINEDEST\r
+#ifdef UNALIGNED_DRAWLINEDEST\r
tst r0, #2\r
bne .fl_32scale_RGB555u\r
-.endif\r
+#endif\r
\r
.fl_loop32scale_RGB555:\r
ldr r12, [r1], #4\r
ldmfd sp!, {r4-r9,lr}\r
bx lr\r
\r
-.if UNALIGNED_DRAWLINEDEST\r
+#ifdef UNALIGNED_DRAWLINEDEST\r
@ unaligned versions of loops\r
@ warning: starts drawing 2bytes before dst\r
\r
ldmfd sp!, {r4-r9,lr}\r
bx lr\r
\r
-.endif @ UNALIGNED_DRAWLINEDEST\r
+#endif /* UNALIGNED_DRAWLINEDEST */\r
\r
\r
@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r
* See COPYING file in the top-level directory.\r
*/\r
\r
-@@ .include "port_config.s"\r
-\r
.equ SRR_MAPPED, (1 << 0)\r
.equ SRR_READONLY, (1 << 1)\r
.equ SRF_EEPROM, (1 << 1)\r
+++ /dev/null
-@ vim:filetype=armasm\r
-\r
-@ .equiv START_ROW, 1\r
-@ .equiv END_ROW, 27\r
-@ one row means 8 pixels. If above example was used, (27-1)*8=208 lines would be rendered.\r
-.equiv START_ROW, 0\r
-.equiv END_ROW, 28\r
-\r
-.equiv UNALIGNED_DRAWLINEDEST, 1\r
-\r
-@ this should be set to one only for GP2X port\r
-.equiv EXTERNAL_YM2612, 0\r
-\r
+++ /dev/null
-@ vim:filetype=armasm\r
-\r
-@ .equiv START_ROW, 1\r
-@ .equiv END_ROW, 27\r
-@ one row means 8 pixels. If above example was used, (27-1)*8=208 lines would be rendered.\r
-.equiv START_ROW, 0\r
-.equiv END_ROW, 28\r
-\r
-.equiv UNALIGNED_DRAWLINEDEST, 0\r
-\r
-@ this should be set to one only for GP2X port\r
-.equiv EXTERNAL_YM2612, 1\r
-\r
+++ /dev/null
-@ vim:filetype=armasm\r
-\r
-@ .equiv START_ROW, 1\r
-@ .equiv END_ROW, 27\r
-@ one row means 8 pixels. If above example was used, (27-1)*8=208 lines would be rendered.\r
-.equiv START_ROW, 0\r
-.equiv END_ROW, 28\r
-\r
-.equiv UNALIGNED_DRAWLINEDEST, 0\r
-\r
-@ this should be set to one only for GP2X port\r
-.equiv EXTERNAL_YM2612, 1\r
-\r