Makefile: cdc example
This commit is contained in:
parent
a26d685ab3
commit
f18944e523
3
Makefile
3
Makefile
@ -19,6 +19,7 @@ ALL += scsp/sound_cpu__slot.cue
|
|||||||
ALL += scsp/sound_cpu__interrupt.cue
|
ALL += scsp/sound_cpu__interrupt.cue
|
||||||
ALL += scsp/sound_cpu__midi_debug.cue
|
ALL += scsp/sound_cpu__midi_debug.cue
|
||||||
ALL += editor/main_saturn.cue
|
ALL += editor/main_saturn.cue
|
||||||
|
ALL += cdc/cdc.cue
|
||||||
|
|
||||||
all: $(ALL)
|
all: $(ALL)
|
||||||
|
|
||||||
@ -150,6 +151,8 @@ editor/main_saturn.o: common/keyboard.hpp editor/editor.hpp
|
|||||||
|
|
||||||
editor/main_saturn.elf: editor/main_saturn.o res/nec.bitmap.bin.o res/nec_bold.bitmap.bin.o sh/lib1funcs.o common/keyboard.o saturn/start.o
|
editor/main_saturn.elf: editor/main_saturn.o res/nec.bitmap.bin.o res/nec_bold.bitmap.bin.o sh/lib1funcs.o common/keyboard.o saturn/start.o
|
||||||
|
|
||||||
|
cdc/cdc.elf: cdc/cdc.o saturn/start.o memcpy.o cdc/serial.o
|
||||||
|
|
||||||
# clean
|
# clean
|
||||||
clean: clean-sh
|
clean: clean-sh
|
||||||
clean-sh:
|
clean-sh:
|
||||||
|
@ -280,9 +280,6 @@ void main()
|
|||||||
// both transparency and end codes are enabled, it seems there are only 14
|
// both transparency and end codes are enabled, it seems there are only 14
|
||||||
// usable colors in the 4-bit color mode.
|
// usable colors in the 4-bit color mode.
|
||||||
vdp1.vram.cmd[2].PMOD = PMOD__ECD | PMOD__COLOR_MODE__COLOR_BANK_16;
|
vdp1.vram.cmd[2].PMOD = PMOD__ECD | PMOD__COLOR_MODE__COLOR_BANK_16;
|
||||||
// It appears Kronos does not correctly calculate the color address in the
|
|
||||||
// VDP1 debugger. Kronos will report FFFC when the actual color table address
|
|
||||||
// in this example is 7FFE0.
|
|
||||||
vdp1.vram.cmd[2].COLR = COLR__COLOR_BANK__TYPE0__PR(0)
|
vdp1.vram.cmd[2].COLR = COLR__COLOR_BANK__TYPE0__PR(0)
|
||||||
| 0;
|
| 0;
|
||||||
vdp1.vram.cmd[2].SRCA = mai_character_address >> 3;
|
vdp1.vram.cmd[2].SRCA = mai_character_address >> 3;
|
||||||
@ -296,9 +293,6 @@ void main()
|
|||||||
// both transparency and end codes are enabled, it seems there are only 14
|
// both transparency and end codes are enabled, it seems there are only 14
|
||||||
// usable colors in the 4-bit color mode.
|
// usable colors in the 4-bit color mode.
|
||||||
vdp1.vram.cmd[3].PMOD = PMOD__ECD | PMOD__COLOR_MODE__COLOR_BANK_16;
|
vdp1.vram.cmd[3].PMOD = PMOD__ECD | PMOD__COLOR_MODE__COLOR_BANK_16;
|
||||||
// It appears Kronos does not correctly calculate the color address in the
|
|
||||||
// VDP1 debugger. Kronos will report FFFC when the actual color table address
|
|
||||||
// in this example is 7FFE0.
|
|
||||||
vdp1.vram.cmd[3].COLR = COLR__COLOR_BANK__TYPE0__PR(1)
|
vdp1.vram.cmd[3].COLR = COLR__COLOR_BANK__TYPE0__PR(1)
|
||||||
| 32;
|
| 32;
|
||||||
vdp1.vram.cmd[3].SRCA = haohmaru_character_address >> 3;
|
vdp1.vram.cmd[3].SRCA = haohmaru_character_address >> 3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user