(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-15-24 11:00 PM
Acmlm's Board - I3 Archive - - Posts by MathOnNapkins
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
User Post
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-15-06 08:24 AM, in If you could change your name... Link
Scratch that, I'd probably change my name to something like Mike Rotch. Then when I tell people my name in introductions, they'll laugh. Then I'll tell them it's my real name and they'll be apologizing all over the place.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-15-06 02:03 PM, in Math -- Finding the angle of a line Link
you need to use an inverse tangent function, or something equivalent.

Take your two points (a,b) and (c,d)

let dx = (c - a) and let dy = (d - b). The d stands for change of course. change in the respective coordinate.

since tan(angle) gives the slope of the line with that angle, arctan(slope) gives the angle of that line. arctan is aka inverse tangent.

Now, a line in the plane has no inherent angle. However, a vector does. We could possibly say that one of the ends acts as a makeshift origin, and that the other point extends from it to form a vector/ray. The reason I say the line has no angle is that arctan(slope) is double valued for every slope of a line. e.g. arctan(1) can be 45 degrees, or 225 degrees. But a ray does have a definite angle.

Anyways, on to the math:

to find the angle, compute arctan(dy/dx). To speed things up, you can of course round the fraction and use a table of values. arctan is probably expensive on a computer.

Assuming that this is a ray, and that (a,b) is the starting point, use the following code:



// you could use radians but whatever.

if(dx == 0)
{
if( d > b)
angle = 90;
else
angle = 270;
}
else
{
angle = arctan(dx/dy); //

if( (dx * dy) < 0)
{
if( dx > 0 )
angle += 180;
}
else
{
if( dx < 0)
angle += 180;

}

angle = angle % 360; // the arctan should output values ranging from 0 to 180, but this is in case you decide to use -90 to 90 instead.


}

MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-15-06 02:31 PM, in Ok, how about clean room disassembly of Lunar Magic? Link
Well here's the thing I'm unsure of. My disassembly is not reassembleable by any current tools, b/c it's more like a transcribed format. Furthermore, it's not the same as distributing a rom b/c it contains almost none of the data, only code.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-15-06 02:56 PM, in Ok, how about clean room disassembly of Lunar Magic? Link
So uh... did you have a change of heart, b/c last I heard you wanted to "plagiarize" Lunar Magic.

Either way, the case study is irrelevant to what we're discussing. Ripping someone off to make money on a book is one thing, distributing information on a piece of software without taking credit of authorship of that software seems a bit different. The intent is to communicate information to tinkerers, not the actual software. Without the data, the code is pretty much useless. By that logic, ram address listings as well as offset lists would also be illegal. What I've got is the software side, the other side is the data side.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-17-06 06:10 AM, in Your profile number... Link
Mine's 210. It was 350 on the previous board, which strikes me as a way cooler number. Sadly, Graviteh took my old # on this board. 210 makes me think of orange and green, which are ugly color combinations. 350 makes me think of blue and purple, way better. Why I'm associating numbers with colors, I have no idea.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-17-06 08:55 PM, in Bomb warning at our school Link
It really baffles me how anyone would be stupid enough to phone in a bomb threat in this post 9/11 oh-noez-terrorism era. Even if you don't get caught, it still seems like it's way more risky than when I was in high school.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-17-06 09:57 PM, in Lookin for Super Metroid hacks Link
There are two completed ones - Legacy and Limit. However, they are by Japanese hackers. There are/were 3-4 people on this board with hacks in progress.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-20-06 07:30 AM, in SNES Hacking, RAM Write Breakpoints, and Frustration (Need Help) Link
@QBRADQ: Try Sleuth. It both logs, does breakpoints, and allows you to step through code line by line. It also allows you to step through the SPC700, though you can't breakpoint or log.

@the thread:

Of note is that Neviksti's InitSNES.asm file uses registers $2180-83 to initialize WRAM. I'll post it for your viewing pleasure:

;**** clear WRAM ********

STZ $2181 ;set WRAM address to $000000
STZ $2182
STZ $2183

LDX #$8008
STX $4300 ;Set DMA mode to fixed source, BYTE to $2180
LDX #wram_fill_byte
STX $4302 ;Set source offset
LDA #:wram_fill_byte
STA $4304 ;Set source bank
LDX #$0000
STX $4305 ;Set transfer size to 64k bytes
LDA #$01
STA $420B ;Initiate transfer

LDA #$01 ;now set the next 64k bytes
STA $420B ;Initiate transfer

...

And that's all it takes really. I didn't even know these registers existed until I was trying to fix something in Sukasa's homebrew rom he posted before the board crash. (It of course used Neviksti's code to initialize.)

edit:@d4s: So uh... I noticed the code I gave above does not work, according to you, so I decided to try to find a professional game that used such a technique. My first try was DKC and it showed up as the first DMA transfer:

DMA[0]: write Mode: 0 0x80A90B->0x2180 Bytes: 0 (fixed) V-Line:8

Now that's actually 64K of bytes but whatever. It's possible the developers at rare were incorrect and that this doesn't actually do anything on the real thing, but don't you find this at least a little bit odd, given they probably had way better debugging environments than us? Though... as far as the bus conflict goes, this is indeed a "fixed" address transfer, so that may be why it could theoretically work. i.e. if I understand correctly, only one bus access is needed from rom, though I don't know if this access is in reality performed only once.

Edit2: Blackthorne also uses it in a similar fashion. Have not yet encountered a sequential write to $2180, and don't expect to.


(edited by MathOnNapkins on 02-20-06 07:49 AM)
(edited by MathOnNapkins on 02-20-06 08:25 AM)
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-20-06 09:13 AM, in wondering Link
You know, why can't we just change the title of the 'is there an editor for X game?' thread to include 'is there a hack of X game?' These threads pop up occasionally and frequently ask about the same games over and over again.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-20-06 12:45 PM, in Celebrity Crush Link
It's kind of odd that in real life I mostly am attracted to brunettes or redheads, but as far as celebs go, I'm attracted to more blondes. E.g. Heather Graham is instant win, so is Naomi Watts. Joey Lauren Adams has a ridiculously sexy voice, though I'm not sure what her natural hair color is. But on the darker side, I'd go with Christina Ricci (long time), Rachel McAdams (who looks like a brunette Heather Graham... weird), oh and Eliza Dushku.

Red heads are being excluded b/c I can't think of any celeb ones at the moment... maybe Kate Winslet is but I'm not sure.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-21-06 03:01 PM, in SNES Hacking, RAM Write Breakpoints, and Frustration (Need Help) Link
^ The issue is not whether they work, but whether they work with DMA. I'm pretty sure that using $2180-83 with a loop would be at least twice as fast as MVN or MVP. So even without DMA you could block move from WRAM to WRAM fairly quickly.

MVN/MVP use a lot of cycles - I've heard either 7 or 8 cycles per byte. that's why I think using these registers would be better. I'm wondering, however, if the cycles mentioned in documents are master cycles or cpu cycles. I'm leaning towards cpu cycles, but I can hope.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-21-06 03:18 PM, in Celebrity Crush Link
^ Not hard to say, given he was all hussied up looking like a woman in Pirates of the Caribbean. Only thing masculine about him was the beard.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-21-06 03:52 PM, in Celebrity Crush Link
Originally posted by Danielle
.."looking like a woman"? Are you saying that because of his hair and eye liner in the movie?
Cuz that's pretty lame. They were the perfect touch to make him look like a pirate.
Laaaaame.


Right, what would real pirates have done without their makeup... I'm also trying to point out that Depp's overall demeanor was pretty effeminent as well. He also had all kinds of beads and crap in his hair and beard. Throw in the light red bandana and he starts to look like a hippy chick. I'm not hating on him, I'm just saying that I thought his overall look and behavior was pretty feminine.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-21-06 04:42 PM, in Comparing files Link
SMILE has this feature, but you can only compare a file with a valid supermetroid rom you already have loaded. I think it would be easy to whip up such a utility, but it would depend on what type of output you would need.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-21-06 09:49 PM, in Comparing files Link
Dagsha: right... like I'm going to look at a DOS file compare for a 3 megabyte file.

An easy, although probably wasteful way to do it would be to have two input files, then compare them byte by byte to the lesser of the two file lengths. Then output a file with that same file length with 00 in the place where each byte was the same, and a 01 where each byte was different. Or possibly instead of 01, you could use the difference between the two, e.g. at byte 0 we'd have $F3 in file one and at byte 0 in file two we'd have $44. That could yield $44 - $F3, which equals $53. An in C, all the underflow/overflow would be handled automatically by using an unsigned char.


(edited by MathOnNapkins on 02-21-06 08:50 PM)
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-21-06 10:07 PM, in Krugle, The Programmers' Search Engine. Link
Apparently everyone wants to be a mod these days.

Personally, I think that stuff like Krugle would work best if all the code was user submitted as public domain. That way, if there is a theft issue, that user can be banned/sued and the offending code removed. It would probably work best as a Q/A format for small tasks. Something like, "how do I open a file in ____ operating system?" or "how do I work detect mouse clicks in _____ programming language?", with clear and conside commented code.

However, there are already sites like that, such as experts-exchange, (not expert sexchange . But that site makes you register to even view solutions, which is lame. You should only need to register to ask questions and give answers.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-21-06 10:34 PM, in Celebrity Crush Link
drjayphd: I understand that he is a wrestler from the UK, other than that i've never even seen him in action aside from that picture, nor do I watch wrestling. But if he's a professional wrestler, he can probably dress however he wants and still look fairly macho. A wiki on him says that he's a descendent of a pirate on Blackbeard's ship, so at least he's got some pedigree for the part. (Notice however there are no beads/eyeliner in that picture.)

Women find pirates sexy in the same way that they find cowboys sexy in theory - even though historically both were lowclass scum who probably weren't very sexy by modern tastes. What I'm trying to say is that if a straight man found J. Depp sexy as a pirate in that movie, it's probably because he dressed / acted much like a woman. I don't see what's so hard to understand about that, as this same idea was brought up earlier in the thread by someone else. You expect pirates to be swashbuckling in movies, but as I recall some of Depp's behavior was downright fruity.

On the other hand if I go back and watch Sean Connery in old Bond films you can tell that he is THE. MAN. but I don't find myself attracted to him, because of his dress and the way he carries himself.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-22-06 12:32 AM, in Photo Album thread. Link
Originally posted by Wurl
That statue makes me feel huge.


really...

Originally posted by Hiryuu
WURL IS HUGE lol


are you like, baiting us to notice that or something?
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-22-06 12:37 AM, in Wurl: MIA Link
Which wolfenstein? Is it the one with the randomly generated castle, and when you walk into walls the screen glitches up? :/
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6296 days
Last view: 6295 days
Posted on 02-22-06 01:54 AM, in Hannity VS. Combs Link
Even though I hate Shawn Hannity, I'm going with him b/c he at least has some balls. Colmes should have quit that show long ago, unless he's just a closet republican proxy or whatever. Which I find likely.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
Acmlm's Board - I3 Archive - - Posts by MathOnNapkins


ABII

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

Page rendered in 0.044 seconds; used 452.21 kB (max 581.14 kB)