Join us on Discord!
You can help CodeWalrus stay online by donating here.
Menu

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.

Show posts Menu

Messages - c4ooo

#16
I would suggest programming on a PC, i cant imagine having hundreds of lines of asm on a calc screen.

As for projects, if you are new to asm, i would suggest starting off with something simple like pong or snake just to get a hang of asm ;)
#17
Wow,! this is awesome :D
A walrii cart game would be cool to see :)
#18
Hardware / Re: z80 computer with arduino coprocessor.
December 23, 2017, 02:20:09 AM
Quote from: Juju on December 23, 2017, 12:53:20 AM
Ooooh, sounds fun. Any idea what you want to do with this?
I dont know, i wanted to build something in the spirit of the Ninjabyte ZPX-128 ( https://codewalr.us/index.php?topic=1001.0 ) And had the part laying around. My main changes from the ninjabyte will be the use of an arduino 'stead of a Parallel Propeller (This can be an arduino mega shield), and the use of an LCD not VGA output.
#19
Hardware / z80 computer with arduino coprocessor.
December 22, 2017, 11:18:00 PM
I built a prototype for a z80 computer that uses an arduino for communication and bootstrapping. I can assemble a z80 source program with brass, and send it to the arduino with a small python program. The arduino is running a firmware program that waits for a program to be sent over serial, which it loads into the ram chip for the z80 to execute. The z80 communicates with the arduino via IO requests. The arduino<-->z80 API only contains 3 commands, but these can be used for the z80 to send messages to the PC via serial.

This is a small test program to send "test1" and "12345" to the PC via serial:

#define output(x, y) ld a,y \ out (x),a
#define command(x) output(PORT_COMMAND, x)
output(PORT_ADD_LOW, writeTo & FFh)
output(PORT_ADD_HIGH, writeTo >> 8) ;set data act-on address to writeTo
ld hl,string1
ld de,writeTo
ld bc,6
ldir ;copy string1 to writeTo
command(COMMAND_WRITE_SERIEL) ;tell arduino to send data from act-on address to PC
;stuff
ld hl,string2
ld de,writeTo
ld bc,6
ldir ;copy string2 to writeTo
command(COMMAND_WRITE_SERIEL) ;tell arduino to send data from act-on address to PC
jr $ ;do nothing
string1:
.db "test1",0
string2:
.db "12345",0
writeTo:


Picture:


Todo:

    Use external clock. (Currently arduino is generating a clock signal)
    Upgrade to 128kb ram chip. (Currently i am using a 32kb one)
    Make arduino use pin registers for control signal IO. (minor)
    Make a paging circuit for said ram chip.
    Add an LCD
    Write an OS(?)
    Add an SD card(?)
    Make PCB (?)
#20
Quote from: ACagliano on December 19, 2017, 05:42:57 PM
Quote from: c4ooo on December 19, 2017, 04:55:07 PM
Quote from: ACagliano on November 19, 2017, 10:26:12 PM
For full 3D, I could make 16x16x16 models for each item, leading to an overhead of 4096 bytes per object,
ehh this isnt how you should be storing 3D models. 3D models are stored as a a bunch or vertices and faces made from those vertices. ;)
oh. Can you give me an example? Would this require more or less a) memory and b) processing power to use than a series of sprites of ships from various angles?
What you are describing with "16x16x16 models for each item, leading to an overhead of 4096 bytes per object" seems to be a voxel engine, which are not exactly the fastest or best looking (ahem ahem minecraft).

Here is an example of how 99.99% of 3D games store their models:
v  0.0  0.0  0.0
v  0.0  0.0  1.0
v  0.0  1.0  0.0
v  0.0  1.0  1.0
v  1.0  0.0  0.0
v  1.0  0.0  1.0
v  1.0  1.0  0.0
v  1.0  1.0  1.0

f  1  7  5
f  1  3  7
f  1  4  3
f  1  2  4
f  3  8  7
f  3  4  8
f  5  7  8
f  5  8  6
f  1  5  6
f  1  6  2
f  2  6  8
f  2  8  4

(This is a cube). ( and of course you want to store this as raw data, not as text). If you want to have a texture applied, you have to also store texture coordinates.

As to the question of "Would this require more or less a) memory and b) processing power to use than a series of sprites of ships from various angles?", well, i really dont know. The "sprites of ships from various angles" method will probably give you better results of far away objects, where as 3D models would be better in up-close ship to ship dog-fighting. Since the game seems more of the former then the latter, i would go with the "sprites of ships from various angles" method. You could probably make and texture the models in blender, then render them from different angles. You might also want to take a look at TheM02's 3D engine for the CE.
#21
Quote from: ACagliano on November 19, 2017, 10:26:12 PM
For full 3D, I could make 16x16x16 models for each item, leading to an overhead of 4096 bytes per object,
ehh this isnt how you should be storing 3D models. 3D models are stored as a a bunch or vertices and faces made from those vertices. ;)
#22
Drawing & Animation / Re: My very own art thread
December 17, 2017, 07:03:35 PM
"I miss fritz and all them" is that a reference to the youtuber?
Also instead of https://mos.neocities.org/art/DiplomacyBoy.png you should make a dog character and give him the title "genetically engineered good boy", that would make a better joke ;)
#23
Quote from: mazhat on March 15, 2017, 02:50:12 PM
the first engine is way more different than the latest edition.
Some older screenshots showing progress of the engine would be cool :)
#24
Quote from: DarkestEx on November 29, 2017, 01:51:44 AM
It would be nice to have this theme as an option for the main site too (theme settings) since the default theme is really had on the eyes at night.
I second this idea for a darker theme. Although something a bit softer then lime green should probably be used, and WIRC should also be darker ;)
#25
How about a MW2 server for the IW4x client? Even though the game is dead we would probably get more people there then on this site if it becomes popular :ninja:
The old world is still there, right? I haven't played MC in a while.
#26
Other / Re: Kotu will not be back on CodeWalrus
November 23, 2017, 10:48:34 PM
Quote from: mazhat on November 23, 2017, 10:21:03 PM
Didn't see this post.
I thought he just left :(

Good bye, Kotu.
I hope he gets a chance to come back.
He can come back when he stops being high and spamming the channel with nonsense.
#27
Other / Re: Thanksgiving and Black Friday
November 22, 2017, 01:01:11 AM
Quote from: xlibman on November 21, 2017, 07:23:33 PM
I haven't spotted anything yet, but if Microplay or La Planque gets deals on CoD Infinite Warfare,
WWII or Star Wars Battlefront II, then I might get one of those (provided that the deal is valid with in-store credits)
Please Dont.
WWII looks fun though, if your PC can run it.
#28
Nice. So is Picross like a mix of minesweeper and soduku?
#29
Media Talk / Re: Funny/awesome Youtube videos
November 02, 2017, 08:29:57 PM
Quote from: xlibman on October 22, 2017, 05:52:59 AM
This was made to promote the Geostorm disaster movie:

https://www.youtube.com/watch?v=Wy-teEFnHLQ

Amazing prank XD
you sure this isnt secretly a co?
#30
Quote from: xlibman on October 23, 2017, 12:51:26 PM
Quote from: Juju on October 23, 2017, 04:17:20 AM
You know the less readable the logo is, the more death metal it is?
And yes, what you say about metal logos is right.
Get on my level:
Powered by EzPortal