3271
BatLib / Re: Need help installing BatLib 84+
« on: May 03, 2011, 10:21:22 pm »
Well, as flattered as I am, I am Sam, Sam I am, and I don't like green eggs or spam.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 3271
BatLib / Re: Need help installing BatLib 84+« on: May 03, 2011, 10:21:22 pm »
Well, as flattered as I am, I am Sam, Sam I am, and I don't like green eggs or spam.
3272
ASM / Re: How to display pixel in certain location« on: May 03, 2011, 08:54:59 pm »
Here is some sample code for pixel routines... Sorry I didn't add many notes to this
![]() ![]() Code: [Select] ;=============================== EDIT: This can probably be optimised...EDIT2: Also, I made it Call GetPixelLoc instead of making it inline because GetPixelLoc has other uses, too, for code. EDIT3: So I figured if it was in your code, it might work better as a call, but if you aren't using it for anything else, place it inline to save 3 bytes. 3273
News / Re: Raylin Demoted« on: May 03, 2011, 04:10:24 pm »
That sounds like a terrible coincidence
![]() ![]() 3274
Introduce Yourself! / Re: Hi friends..« on: May 03, 2011, 10:39:53 am »
Yeah, I am very sure it would pass a Turing Test as it is and if it were tweaked a little, it could make for an excellent competitor in AI competitions. It is more intelligent than cleverbot!
![]() 3275
Miscellaneous / Re: Osama Bin Laden died« on: May 02, 2011, 01:29:21 am »
I think May 1st, 2011 is the day Barack Obama won the game.
3276
Miscellaneous / Re: Osama Bin Laden died« on: May 02, 2011, 01:16:56 am »
This is one of those times that I wish I was taking a history course
![]() ![]() 3277
ASM / Re: I need help with creating programs..« on: May 01, 2011, 12:14:29 am »
Yeah, Qwerty has it correct
![]() Pretty much, _RclAns does several things: -Stores the type that Ans is in the "a" register -Stores the address of the vat entry in HL -Stores the location of the size bytes in DE If Ans is a real number, the real number is stored in OP1 and if it is a complex number, it is stored to OP1 and OP2 has the imaginary part. You will also want to know how variables are stored by the OS. The data itself is stored so that the first two bytes tell the size and the data following is the actual variable data. SO for example, if the hex was 0301454699..., then the size is represented by the 0301 part. Since it is little endian (the little end, in) you need to count it as 0103 which is 259. This means there are 259 bytes of code. Also, because it is little endian, I stored the first byte to c and the second to b. That way, BC contains the total size ![]() 3278
BatLib / Re: Creepy-Crawlies (Bugs)« on: April 30, 2011, 05:58:00 pm »
Um, I found a bug with RecallPic in ReCode. The problem? Instead of typing in 78 (ld a,b) I typed 18 which caused everything to mess up
![]() ![]() 3279
ASM / Re: I need help with creating programs..« on: April 30, 2011, 05:48:24 pm »
Well hello there! Welcome to the site! Here is some code for you to play with
![]() Code: [Select] ;=========================================================
3280
BatLib / Re: BatLib« on: April 30, 2011, 02:54:37 pm »
Probably not
![]() ![]() 3281
BatLib / Re: BatLib« on: April 30, 2011, 10:05:53 am »
It isn't the size, it is the trade off in limitations... right now, you have only 12 columns, but the sprites can be up to 96 pixels wide, they can still be drawn every pixel down, the sprite drawing is much faster (enough to create grayscale). The other method will be slower and be only for 8 pixels wide and the sprite masks will be limited. You haven't bugged me to finish making this, you have only complained to me that you don't like the current version. There is a reason for the "BatLib Ideas" topic.
Sorry. EDIT: Also, on another note, I will be without internet for from May 9th to August 29th, so if I don't respond, that is why ![]() 3282
BatLib / Re: BatLib« on: April 29, 2011, 11:22:58 pm »
Yes, currently I only have it with multiples of 8 (I was a big fan of using Celtic 3 before I learned assembly). That method is simply a lot faster to render and it can display sprites a multiple of 8 wide (so 64 pixel wide sprites, for example). If I make a routine that lets you display at any X coordinate, it will probably be only 8x8 sprites to begin with, and maybe eventually multiples of 8 wide.
3283
BatLib / Re: BatLib Demo Programs« on: April 29, 2011, 11:18:13 pm »
Yes, there is a recallpic function (called PicHandle). The fastest way for creating grayscale with BatLib is to actually use the command that draws sprite directly to the LCD. That isn't the most simple version, though... To give an idea, BatLib has all the tools to store a bunch of pictures in one file, then reading it from archive, you can cycle through each picture rapidly.
Also, ReCode has a RecallPic function, so that could prove pretty useful... Here is an example I made while trying to make a scaled down main menu: 3284
BatLib / Re: BatLib/ReCode Examples« on: April 29, 2011, 11:02:54 pm »
Yeah, it is a little complicated to look at, but if you are coding it, it isn't bad. It is like trying to read another person's source
![]() 3285
Math and Science / Re: Non-linear sequence« on: April 29, 2011, 10:58:24 pm »@Xeda: Any polynomial interpolation will be bound to lose accuracy pretty quickly, considering that f(x)>2^(x-1) which is exponential.I know, but he only asked for an equation for that data ![]() ![]() |
|