Page 2 of 3
Re: Custom Rom
Posted:
03 Jan 2012, 21:21
by justine
So am i right in thinking that i make a 16k rom image then i make one big 64k image like
copy /B /Y ff.rom+ff.rom+ff.rom+test.rom custom.rom
The ff.rom just being 16k of $ff and the test.rom being my 16k code .
Then upload custom.rom using the custom rom updater ?
Re: Custom Rom
Posted:
03 Jan 2012, 22:47
by lvd
Justine, it seems OK. If nothing works, probably you should try runing your code from RAM first?
At the same time, you can start trying simple things in ROM, like, for example, border colors changing.
Re: Custom Rom
Posted:
03 Jan 2012, 22:49
by justine
Do i also have to put $00 $C9 at 3D2F as well in the 16K custom rom ?
I have made several 64k roms with various code but none execute i just see vertical lines.
What am i doing wrong ?
Re: Custom Rom
Posted:
03 Jan 2012, 23:03
by savelij
Код $00,$С9 должен быть только в сервисной странице. Через этот код производится вход в custom rom. Custom rom должно выглядеть вот так.
$0000-$3FFF
$4000-$7FFF
$8000-$BFFF
$C000- ваш код
$FD2F - $00, $C9 обязательно
Re: Custom Rom
Posted:
03 Jan 2012, 23:32
by justine
Ok so i first make the 16K custom rom using this code.
- Code: Select all
.org $0000
di
;Black ink, white paper, no flash, no bright
ld a,00111000b
ld hl,22528
ld de,22529
ld bc,767
ld (hl),a
ldir
ld a,1 ;A = pattern value to fill the screen with.
exx
ld bc,00feh ;C' = port FEh to write border color into.
ld e,0 ;E' = number of color to show on border.
exx
BucPrincipal ld hl,16384
ld de,16385
ld bc,6143
ld (hl),a
ldir ;Fill the screen with pattern
exx
out (c),e ;Indicate what bit is on by changing border color.
inc e ;Prepare next color.
exx
ld bc,0effeh
EsperarASoltar in e,(c)
bit 0,e
jr z,EsperarASoltar ;Wait until 0 is not pressed.
jp Retardo ;Software debounce loop
EsperarAPulsar in e,(c)
bit 0,e
jr nz,EsperarAPulsar ;Wait until 0 is pressed.
jp Retardo ;Software debounce loop
rlca ;Rotate A, so pattern shows next bit.
jr nc,BucPrincipal ;If we have completed a turn over A register...
exx
ld e,0 ;... Reset E' to 0
exx
jr BucPrincipal
halt
Retardo ld hl,0
BucRetardo dec hl
inc h
dec h
jr nz,BucRetardo
ret
; Fill rest of rom with $FF
.FILL $3D2F-$,$FF
.ORG $3D2F
.BYTE $00
.BYTE $C9
; Fill rest of rom with $FF
.FILL $4000-$,$FF
.END
Then i will compile using tasm and next i will issue this command to build the 64k rom image
copy /B /Y ff_16k.rom+ff_16k.rom+ff_16k.rom+test.rom custom.rom
I then use the custom rom updater and select custom rom using key G. Next i push F12 to reset but i only get vertical bars nothing happens.
What have i got wrong ?
Re: Custom Rom
Posted:
04 Jan 2012, 07:38
by lvd
justine wrote:What have i got wrong ?
justine wrote: jp Retardo ;Software debounce loop
justine wrote:Retardo ld hl,0
BucRetardo dec hl
inc h
dec h
jr nz,BucRetardo
ret
Is it a trolling? :-D
Re: Custom Rom
Posted:
04 Jan 2012, 07:41
by lvd
btw, I don't see where you configure stack and RAM page for it.
Re: Custom Rom
Posted:
04 Jan 2012, 10:19
by savelij
Я конечно извиняюсь, но custom rom прошивался не туда куда производился сброс. Исправил эту проблему. Версия 0.48b.
И написал простенький тест с переключением экранов. Исходник прилагаю. И прилагаю сам custom rom уже собранный.
Re: Custom Rom
Posted:
04 Jan 2012, 17:17
by justine
Thanx savelij i will try that when i get home tonight.
Re: Custom Rom
Posted:
04 Jan 2012, 20:18
by justine
savelij what assembler do you use ??
I am trying to compile justine.a80 with asw but keep getting errors ?