Show Posts

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.


Messages - Keoni29

Pages: 1 ... 7 8 [9] 10 11 ... 168
121
Other / Re: CBS6000 - an 8-bit 6510 computer
« on: November 12, 2014, 04:43:25 am »
The firmware (bios) on modern computers is just a fraction of the size of ram. Computers these days rely on external media which contents are loaded into ram.
The c64 has 64k of ram and just 20k of rom. It too relies on external media such as floppies or casette tape. Yes this is more balanced than my computer, but I don't intend to write a large basic or kernal for it. Those take up 16k in the c64. I also don't need a character generator rom because this thing does not have a video chip. This saves another 4k of rom. The only things I want to save in rom are a program loader, peripheral drivers, menu system and a sound sample player.

That aside: it was either 128k or 8k because those were the only ram chips I currently have in stock. I want to add a serial flash rom with more data on it so I can play back sound samples for example.

122
Other / Re: CBS6000 - an 8-bit 6510 computer
« on: November 09, 2014, 12:40:33 pm »
Lol so you type in programs bit by bit ? *.*
Anyway nice project. :3
Yep that is right  8) Don't worry: I will get rid of the buttons and hook it up to my PC via the printer port. That way I can send files to the 8 bit computer.

Yesterday I put the bootloader on an EEPROM, so the data does not go away when the battery runs out! I am moving towards getting rid of the cartridge slot because this thing has so much ram. I'd rather load software from external media or my PC. I want to leave this thing connected to my PC during development. When the firmware is all done I will put it all on the EEPROM.

The system specs changed slightly: it now has 8KB of ROM instead of 4. User code will be able to access the lower 4KB of the EEPROM for writing, so there is some kind of non-volatile storage on the computer.

123
HP Calculators / Re: Annoying feature-Boot time/Splash screen for hp prime
« on: November 07, 2014, 07:56:22 pm »
During the splash screen the calculator is probably initialized. That takes some time. Even if you could get rid of the splash screen it will probably take the same amount of time before the calculator is ready to use.

124
Other / Re: CBS6000 - an 8-bit 6510 computer
« on: November 07, 2014, 07:43:06 pm »
I wrote a bootloader for the computer. I can send data using a software-defined 2 wire serial interface. Because I didn't feel like writing a PC program to send files to the computer yet I hooked up 2 buttons to the pins and entered a 22 byte blinky led program manually. After I hit the execute key the LED started blinking :3 I am so glad that this is coming together so well.

Code: [Select]
// Pseudocode:
// Repeat 8 times
//   Wait for SCK to go LOW / Execute program if RUN is LOW
//   DOUT = 0
//   Wait for SCK to go HIGH again
//   Read bit from DIN and store to buffer
// End
// Move byte from buffer to address
// Increment address
// DOUT = 1
// Otherwise: receive another byte
SCK is the clock pin
DIN is the data-in pin
DOUT is the data-out pin. I use DOUT as an acknowledge signal. After every received byte DOUT is HIGH until CLK goes low again.

125
Other / Re: Random tetrimino (Tetris block) generator!
« on: November 02, 2014, 07:06:09 am »
It would be cool though, but yeah I understand.

Now imagine a full Tetris game made of LEDs O.O
That has probably been done before. I don't think I have ever heard of analogue tetris before tho. Spyro said in irc that he made this so he and his friend could play tetris on paper :)

126
HP Calculators / Re: HP 50g/49g+ GRAYSCALE GAMES
« on: October 27, 2014, 05:25:28 pm »
There should just be a splash screen at the beginning of the application just like the free version of Game Maker on PC.

127
HP Calculators / Re: HP 50g/49g+ GRAYSCALE GAMES
« on: October 27, 2014, 07:19:06 am »
The openfire banner on top wastes a lot of precious screen space though.

128
HP Calculators / Re: HP 50g/49g+ GRAYSCALE GAMES
« on: October 27, 2014, 05:27:32 am »
Did you make all of these? This stuff looks pretty old. (not just the dates on the files, but also the "new" gif)

129
Gaming Discussion / Re: Your best video game pickups.
« on: October 27, 2014, 03:23:42 am »
The wiiU version is gonna be epic. You can play with up to 8 players locally! To accommodate for this you can control the game with your 3ds, so you don't need to buy 8 controllers for you and your friends. They can just bring their 3ds-es.

130
Music Showcase / Re: Firestorm 2015 (yep, a new remix!)
« on: October 20, 2014, 05:19:25 am »
You really need some 90's europop vocals to go with this!

131
Music Showcase / Re: Matrefeytontias's music showcase (has metal in it)
« on: October 20, 2014, 04:30:41 am »
That sounds so awesome!

132
Computer Programming / BMP image garbled picture
« on: October 17, 2014, 03:39:55 am »
I made a test program that generates variable size bmp images. When I generate images with widths under 11 or so the images have weird colors in them at the top.
Code: [Select]
/*
    Create 24 bit Bitmap image.
    Date: 16 oct 2014
    Version: 1
    Error: Weird colors when making images smaller than ~11 pixels wide.
*/


#include <stdio.h>

/* Write little-endian 32 bit value to file. */
void fputlong(int val, FILE *fp){
    fputc((char)(val & 0xFF), fp);
    fputc((char)((val >> 8 )& 0xFF), fp);
    fputc((char)((val >> 16) & 0xFF), fp);   
    fputc((char)(val >> 24), fp);
}

/*
    argv[1] = char *src;
    argv[2] = char *dst;
*/
int main (int argc, char *argv[]) {
    FILE *dst;
    int ch, padding, xx, yy, w, h;
    char red, green, blue;
    /* Verify user input */
    if (argc < 4) {
        printf("Error: ");
    }
    switch (argc) {
        case 0:
        case 1: printf("Missing filename");
                break;
        case 2: printf("Missing image width");
                break;
        case 3: printf("Missing image height");
                break;
        case 4: printf("Missing RED color value");
                break;
        case 5: printf("Missing GREEN color value");
                break;
        case 6: printf("Missing BLUE color value");
    }
    if (argc < 4) {
        printf("\nUsage: bmptest file.bmp width height r(0-255) g(0-255) b(0-255)\n");   
        return 0;
    }
w = atoi(argv[2]);
    h = atoi(argv[3]);
    red = (char)atoi(argv[4]);
    green = (char)atoi(argv[5]);
    blue = (char)atoi(argv[6]);

    dst = fopen(argv[1], "wb+");

    /* Write file header */
    fputc('B', dst);    // File identifier
    fputc('M', dst);    //
    padding = (4 - ((w * 3) % 4))% 4;
fputlong(w * h * 3 + 50 + (padding * h), dst); // Filesize
    fputlong(0x00, dst);        // Reserved 4 bytes.
    fputlong(0x036, dst);     // Offset
fputlong((int)40,dst);
    fputlong(w, dst);        // Width of bitmap
    fputlong(h, dst);        // Height of bitmap
    fputc(0x01, dst);        // Number of color planes
    fputc(0x00, dst);
    fputc(24, dst);            // Number of bits per pixel
    fputc(0x00, dst);
    fputlong(0x00, dst);    // Compression method: none
    fputlong(0x00, dst);    // Image size. Dummy 0
    fputlong(0x2700, dst);    // Horizontal resolution
    fputlong(0x2700, dst);    // Vertical resolution
    fputlong(0x00, dst);    // Number of colors in palette (Default 2^n)
    fputlong(0x00, dst);    // All colors are equally important
    for (yy = 0; yy < h; yy ++) {
        for (xx = 0; xx < w; xx ++) {
fputc(blue, dst);
fputc(green, dst);
fputc(red, dst);
        }
for (xx = 0; xx < padding; xx ++) {
fputc(0x00, dst);
}
    }
    printf("Padding = %d; Filesize = %d\n", padding , w * h * 3 + 50 + (padding * h));
    fclose(dst);
    return 0;
}
Is this a problem with my code or with the decoder?
My bad. Padding should be at the end of every row of pixels >.<

133
Other / Re: Making a sound mixer
« on: October 16, 2014, 08:20:58 am »
It's basically a bunch of inverting amps with an ajustable resistor in the feedback loop. The outputs of those are then summed by an inverting summing amplifier. The result is all of the channels coming out non-inverted again. (Not that it matters most of the time though.)
The amps make sure there is no crosstalk between channels. I should have made that schematic in CAD software. It looks so ugly

134
General Discussion / Re: Anyone go to music concerts?
« on: October 14, 2014, 03:31:13 pm »
Videogame live is coming to the Netherlands 12th of November. Might go there.

135
Other / Re: Making a sound mixer
« on: October 14, 2014, 03:23:18 pm »
Looking good :) I see there are 3 pots on there. 2 channels and 1 master I assume?

Pages: 1 ... 7 8 [9] 10 11 ... 168