|
ForumsSega Master System / Mark III / Game GearSG-1000 / SC-3000 / SF-7000 / OMV |
Home - Forums - Games - Scans - Maps - Cheats - Credits Music - Videos - Development - Hacks - Translations - Homebrew |
![]() |
Author | Message |
---|---|
|
Silver Valley
![]() Last edited by 8BitBoy on Sat Jan 16, 2021 3:10 pm; edited 1 time in total |
Recently bought a copy of Silver Valley on cartridge for SMS. Does anyone know where I can buy or download a replacement cover please? Already tried eBay but wondered if the dev has a URL or something. Hoping he (or someone in the know) sees this.
Thanks, 8BitBoyUK |
|
![]() ![]() ![]() |
|
|
![]() |
Where did you find that? |
|
![]() ![]() ![]() |
|
|
![]() |
Facebook :) | |
![]() ![]() ![]() |
|
|
![]() |
Just arrived
|
|
![]() ![]() ![]() |
|
|
I found one... Link below
![]() |
https://www.smspower.org/forums/files/silver_valley_113.png | |
![]() ![]() ![]() |
|
|
![]() |
Ummmm....
Does somebody knows about an optimized sqrt function for sdcc? Since previous games were made with z88dk, i had the math unit, but i don't find the same on sdcc! [edit]: Have found: http://www.retroprogramming.com/2017/07/a-fast-z80-integer-square-root.html If someone could encapsulate the fnal code into a working sdcc function... |
|
![]() ![]() |
|
|
![]() |
I don't usually use sqrt(), there's usually a way to avoid it ;)
BTW in case we could use this one for instance, conveniently wrapped in C unsigned char fast_sqrt (unsigned int value) __naked __z88dk_fastcall {
__asm ; fast 16-bit isqrt by Zeda Thomas ;Feel free to use for whatever :) ;Input: HL ;Output: L is the integer square root of HL ;Destroys: HL,DE (D is actually 0) ld de,#0x05040 ; 10 ld a,h ; 4 sub e ; 4 jr nc,sq7 ;\ add a,e ; | branch 1: 12cc ld d,#16 ; | branch 2: 18cc sq7: ;/ ; ---------- cp d ; 4 jr c,sq6 ;\ sub d ; | branch 1: 12cc set 5,d ; | branch 2: 19cc sq6: ;/ ; ---------- res 4,d ; 8 srl d ; 8 set 2,d ; 8 cp d ; 4 jr c,sq5 ;\ sub d ; | branch 1: 12cc set 3,d ; | branch 2: 19cc sq5: ;/ srl d ; 8 ; ---------- inc a ; 4 sub d ; 4 jr nc,sq4 ;\ dec d ; | branch 1: 12cc add a,d ; | branch 2: 19cc dec d ; | <-- this resets the low bit of D, so `srl d` resets carry. sq4: ;/ srl d ; 8 ld h,a ; 4 ; ---------- ld a,e ; 4 sbc hl,de ; 15 jr nc,sq3 ;\ add hl,de ; | 12cc or 18cc sq3: ;/ ccf ; 4 rra ; 4 srl d ; 8 rra ; 4 ; ---------- ld e,a ; 4 sbc hl,de ; 15 jr c,sq2 ;\ or #0x20 ; | branch 1: 23cc db #254 ; | <-- start of `cp *` which is 7cc to skip the next byte. sq2: ; | branch 2: 21cc add hl,de ;/ xor #0x18 ; 7 srl d ; 8 rra ; 4 ; ---------- ld e,a ; 4 sbc hl,de ; 15 jr c,sq1 ;\ or #8 ; | branch 1: 23cc db #254 ; | <-- start of `cp *` which is 7cc to skip the next byte. sq1: ; | branch 2: 21cc add hl,de ;/ xor #6 ; 7 srl d ; 8 rra ; 4 ; ---------- ld e,a ; 4 sbc hl,de ; 15 sbc a,#255 ; 7 srl d ; 8 rra ; 4 ld l,a ; we need to place result in L ret ; because this is nakėd __endasm; } edit: immediates fixed, SDCC uses some different asm dialect... edit2: made the function nakėd |
|
![]() ![]() ![]() |
|
|
![]() |
You are my hero ;) | |
![]() ![]() |
|
|
![]() |
you are mine! :D | |
![]() ![]() ![]() |
|
|
![]() |
had to replace two lines (a dot before "db")
ex: "db #254" to ".db #254" but it works :) |
|
![]() ![]() |
|
|
![]() |
Hi eruiz00, Do you have the intention of releasing physical copies of your games?.
Your games are very good, and It would be awesome. Thank you!. |
|
![]() ![]() |
|
|
![]() |
Maybe... or maybe not.
If someone wants to make physical copies and we agree in the terms, we could release the rom as physical edition months before releasing the rom (although i am almost sure someone will release the rom before!)... maybe a crowfunding? But this is not my main objetive (i would be making games for android or unity or elsewhere) and this game wont be finished in a long time. The fact is the new project main concept is a sort of development and narrative sandbox, too many things to do in it, if i want it to be properly finished. ... and I feel myself free at all, now that i have unlimited code size (checked and confirmed... i have now a 160kb rom with code on several banks working) i am doing the things more refined than before, with finished menus, effects, minigames, transitions, a more complex engine, etc. too many work dude! Regards. |
|
![]() ![]() |
|
|
1st boss disappears off screen
![]() |
Finally made it to first boss (dragon). He's bloody hard as nails. Managed to knock him off the screen but now can't progress. Will have to reset
|
|
![]() ![]() ![]() |
|
|
![]() |
It was a known ( by me) bug... I tryed to fix it but i see i did not it at all. Shame on me. | |
![]() ![]() |
|
|
![]() |
WoW eruiz00, It is fantastic reading about your new project and finding expresions like "now that i have unlimited code size (checked and confirmed", "doing the things more refined than before", "with finished menus", "effects, minigames, transitions", "a more complex engine, etc"
Altought your main objective is not releasing physical copies, maybe It would help you accomplishing the main one watching your work beatifully presented and earning some coins for working hard. Regards dude!. |
|
![]() ![]() |
|
|
![]() |
Thanks. I restarted and was more careful this time. I kissed his ass. Thanks. Is there a way to get more lives on the console version (like emulation)? Or can you access menu on the console version? |
|
![]() ![]() ![]() |
|
|
![]() |
oh right. sorry. |
|
![]() ![]() ![]() |
![]() |