(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-05-24 07:51 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - Interested in .SPC altering within a ROM New poll | |
Pages: 1 2Add to favorites | Next newer thread | Next older thread
User Post
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6286 days
Last view: 6286 days
Posted on 05-22-06 12:59 AM Link | Quote
Originally posted by never-obsolete
you and i dont think so, but i find more and more people that:

a. dont know how to use the command prompt and batch files or
b. dont even know they exist

for ease of use, a simple gui could be constructed.

I can't imagine somebody knowing SPC700 ASM and not being able to use a command line. As for long paths, copy+pase FTW. You can put paths with spaces in them in quotes: del "C:\Some place\wherever\a file I don't want.txt"

Also, batch files are just multiple commands:
@echo off
color 1e
title Command Prompt
echo Command prompt for %USERNAME% on %COMPUTERNAME%
echo Current time is %TIME%, %DATE%
echo System uptime:
uptime
echo.
echo Scheduled tasks:
at
echo.
echo Enter command:
if "%1" EQU "" goto default_dir

cd /d "%*"
goto :EOF

:default_dir
f:



(edited by HyperMackerel on 05-22-06 12:01 AM)
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6286 days
Last view: 6285 days
Posted on 05-22-06 06:37 AM Link | Quote
There is a difference between something being unknown/difficult to you and something being annoying to you. Command line is annoying, and batch files are annoying. You can copy+paste in a batch file though, whereas you cannot in a DOS environment.

So basically to make command line convenient you need to learn to use batch files, which grow more archaic every day.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6286 days
Last view: 6286 days
Posted on 05-25-06 01:19 AM Link | Quote
I'll agree with you there. Batch scripts are powerful but making them can be a major pain.
FreeDOS +

Giant Red Koopa
Legion: freedos = fritos








Since: 11-17-05
From: Seattle

Last post: 6285 days
Last view: 6285 days
Posted on 05-25-06 03:53 AM Link | Quote
A useless GUI is also a pain. For me, the command line is the best place assemblers and disassemblers belong. Not to mention that they're the easiest programs to port. For an SPC-700 (dis)assembler, the most complex thing is math and file I/O; really the only porting problems you should encounter if you write a program correctly is endianness.


(edited by FreeDOS + on 05-25-06 02:55 AM)
blackhole89
Moronic Thread Bodycount: 17
(since 2006-08-21 09:50 EST)
F5 F5 F5 F5 F5


 





Since: 12-31-69
From: Dresden/SN/DE

Last post: 6288 days
Last view: 6285 days
Skype
Posted on 05-25-06 07:12 AM Link | Quote
Originally posted by MathOnNapkins
Well what I have in the NSPC for Zelda 3 is the following code:


0CA4: F7 14 MOV A,($14)+Y

0CA6: C9 F2 00 MOV $00F2,X ; Take the first four bytes of the instrument block and write them to
0CA9: C5 F3 00 MOV $00F3,A ; Dsp registers $00v4 through $00v7. See SPC docs for more info.
0CAC: 3D INC X ; The loop writes to the SRCN, ADSR1 and ADSR2, and Gain.
0CAD: FC INC Y
0CAE: AD 04 CMP Y,#$04

0CB0: D0 F2 BNE $0CA4

0CB2: CE POP X
0CB3: F7 14 MOV A,($14)+Y
0CB5: D5 21 02 MOV $0221+X,A ; This is a big endian encoding. The last 2 bytes of the six byte instrument block
0CB8: FC INC Y ; Are stored to [$0220-1]+X
0CB9: F7 14 MOV A,($14)+Y
0CBB: D5 20 02 MOV $0220+X,A
0CBE: 6F RET


SRCN = source number or the index into the sample table. This denotes what sample to use.

ADSR1 and ADSR2, and GAIN are a little more complicated and you should find some documentation. The last two bytes of the block are... some kind of multipliers for the instrument that I haven't totally figured out yet. It's a lot of code to look through and a lot of guesswork at first.

Thanks. This comes in very handy seeing as I apparently lost what Bouche told me about the instrument table's format.
never-obsolete

Paragoomba








Since: 05-14-06
From: AZ

Last post: 6287 days
Last view: 6287 days
Posted on 05-25-06 08:29 AM Link | Quote
Originally posted by FreeDOS +

A useless GUI is also a pain.


my thoughts exactly. and seeing how every option with an assembler can be handled by switches, there really would be no point in coding a gui.
Originally posted by FreeDos +

the most complex thing is math


i have no knowledge of the SPC-700. is the math you are refering to specific to it, or do you mean operators like:

lda somelabel + 1



(edited by never-obsolete on 05-25-06 07:33 AM)
Pages: 1 2Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - ROM Hacking - Interested in .SPC altering within a ROM |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.016 seconds; used 375.94 kB (max 459.91 kB)