Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / [STICKY] The Posting Competition

Author
Message
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 9th May 2018 07:34
Quote: "Well, I guess as it has been a while, what's new party people? "
It's been too long! Congrats on the programming job!

It's been years since I've been programming much. DBPro used to be my language of choice, but it's so hard to get it working these days (finding a good IDE, installing the right version of DirectX, etc etc). I've had some random experiments I've wanted to do for some time, so I finally bit the bullet and began looking for a language that would suite me. I ultimately decided on C, and I simply love it. Best language I've ever used! I enjoy its utter simplicity, and I've never been a fan of OOP, so it's perfect. I came up with some random instruction set and I've been implementing an emulator to run it over the past few weeks, which has been a great learning experience. The core emulator works, but I have to manually enter values into an array to program the emulator, and it can only output to the console so far, so I next need to dive into some file IO and graphical interface stuff. Optimization is another challenge -- I have it up to about 125 MIPS at the moment, but I've had simpler prototype emulators run in excess of 270 MIPS.
Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 10th May 2018 21:15
Quote: "some random instruction set"

Are there registers called pft, pfft, pffft, and pfffft?


Other than this youtube channel, I've been procrastinating on more important things and occasionally working on Exotreve.
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 11th May 2018 00:05 Edited at: 11th May 2018 00:08
Quote: "Are there registers called pft, pfft, pffft, and pfffft?"
I should name some that! It's a load store architecture, but has many registers. I currently have it set to 512 registers -- probably not practical in the real world, but hey, this is an emulator! The instruction set is a little inefficient in size, with each instruction being 6 bytes. The first 2 hold the instruction and addressing mode for each of the (up to) 3 operands, and the other 4 (or 6) bytes hold the 2 (or 3) operands themselves. I've since come up with a more efficient way to represent instructions, but I'm too lazy to rewrite the emulator for a 4th time.

It seems that, quite strangely, bitwise operations are taking a rather long time to perform. I use the bitwise operations (mainly AND) to break the first two bytes into instruction and addressing mode codes. That alone is eating up like a third of the total run time.

I am now confused as to what the correct ear cleaning technique should be. You should make a video on that!
Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 11th May 2018 20:16
Quote: "512 registers"

I have a great idea! Make one of the registers not work properly and don't document which one.
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 11th May 2018 20:59
Quote: "don't document which one."
Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 11th May 2018 23:10
So what are your addressing modes?
320x224
Seditious
11
Years of Service
User Offline
Joined: 2nd Aug 2013
Location: France
Posted: 12th May 2018 20:46
512 registers? That should make for some bloated opcodes.
2002 - Present
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 12th May 2018 21:05 Edited at: 12th May 2018 21:17
Quote: "That should make for some bloated opcodes."
I mean, each instruction is 6 bytes long.

Quote: "So what are your addressing modes?"
Register, register pointer, address, address pointer, and literal. Each opcode can have its own addressing mode, which explains the 9 bits that specify the addressing modes

The simpler system I came up with reduces the two bytes instruction down to one. I could then have dynamic operand sizes depending on whether they pertain to a register, address, or literal, but that would require more logic in the code and perhaps a slower emulator.

Here's the spec of the instruction set:
Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 12th May 2018 21:36 Edited at: 12th May 2018 21:39
An angel's ping is what you sell
You promise me gameplay and put me through hell
Chains of routers got a hold on me
When latency's risen you'll play poorly

Oh, you're a teleporting gun
Oh, it won't let me run
No one can save me
This match is no fun

Shot through the wall
And lag's to blame
You give WAN a bad name (bad name)
I play my part
And you wreck my game
You give WAN a bad name (bad name)

@Dark Java Dude 64
What about and, or, xor, and shifting?
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 13th May 2018 08:27 Edited at: 13th May 2018 08:31
Quote: "What about and, or, xor, and shifting?"
They're coming soon, that's what the reserved is for! See, I'm designing an instruction set, yet I've never actually programmed in assembly before. So I guess it's kind of a learning experience like that -- I keep realizing that I need extra features and instructions through experimentation and then adding them. It was when I realized that I needed some sort of register pointer capability (I was trying to write a program that would fill a small array) that I redesigned the instruction set to be expandable (albeit inefficient in size).

On that note, my original goal was to emulate a one instruction set computer, specifically SUBLEQ. That was super simple (like 20 lines of code for the main loop) and was really fast, I think I had it up to 370 MIPS. I then realized that I could add extra instructions by creating a small number of address that could not be jumped to (instructions trying to jump to those addresses would be interpreted as different instructions, like add or move). That got really complicated and convoluted, so I came up with what I have now.
Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 13th May 2018 16:09
How do your conditional jumps work? Do you have a status register?
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 13th May 2018 21:41 Edited at: 13th May 2018 22:00
Quote: "How do your conditional jumps work? Do you have a status register?"
They're a little funky so far. They're implemented as compare and jumps. One register is set aside as a ccompare register, so values you want to compare with are moved to that register. Then, the compare and jump instructions each accept two operands. One is the value being compared with the value in the compare register, and the other is the address being jumped to. So far it jumps if the operand value is less than or equal to the value stored in the compare register. Not very elegant, but there's room to expand. A status register is a great idea -- the instruction would jump if the value in the status register is equal to the value specified by the instruction.

Here's a simple program that iterates a variable X up to 20, then resets it to 0, using the compare and jump instruction for flow control:

Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 14th May 2018 01:29 Edited at: 14th May 2018 01:38
Well it seems I went and made an instruction set. I don't currently plan on doing anything with it.
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 14th May 2018 06:48 Edited at: 14th May 2018 06:49
It appears your instruction set may have more features than mine!

Quote: "I don't currently plan on doing anything with it."
Make an emulator
Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 20th May 2018 02:28

That makes a total of three things in this room that are sound damping pillow adjacent.
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 20th May 2018 09:51 Edited at: 20th May 2018 09:53
I have just watched this video you have posted and that you have shared on these forums. Upon watching that video, I have figured out that the pillows contained within that box may have a low temperature. If you ever decided to sleep with those pillows, and had been using them in the manner depicted in the video you have created and posted and shared on this forum, and if you prefer pillows not to be cold when sleeping with them, you would need to warm the pillows first. Be advised that a microwave oven is not the proper tool for this task.
Yes!
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 20th May 2018 20:06
I went to the MCN Motorbike Festival today and saw this bad boy:


Who wouldn't want a Frozen themed tricycle?
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 20th May 2018 22:55
The pillow is near the intake vent, so it's probably fine.

Quote: "Who wouldn't want a Frozen themed tricycle? "

It probably has fantastic air conditioning.
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 20th May 2018 23:03
Quote: "It probably has fantastic air conditioning."
But is the air conditioning sound dampened!?!??!
Yes!
Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 20th May 2018 23:31
Quote: "But is the air conditioning sound dampened!?!??!"


It is now!!!
320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 25th May 2018 17:11
That's really cool.
Yes!
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 9th Jun 2018 03:58
I spent the week at Disney and caught the stormtrooper parade up close and personal in 360 VR, the guy got up inches from my face. Grab some cardboard and check it out!

http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
nonom
7
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 13th Jun 2018 00:12
Hey I didn't knew!
http://www.nyan.cat/pirate
AutoBot
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 10th Jul 2018 03:39
boop
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 15th Jul 2018 02:31
beep
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
The Slayer
Forum Vice President
15
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 19th Jul 2018 04:59
bump
Quote: \"Close those quotes before they start to spread!...too late! Aaaaaagh!!!
xilith117
15
Years of Service
User Offline
Joined: 1st Nov 2009
Location:
Posted: 22nd Jul 2018 06:20
This is my first post in years.
Help me start a 3d printing business! Please! http://igg.me/at/ples3d/x/2854534
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 14th Aug 2018 14:05
Hey, anyone know what happened to the posting competition? I can't find it anywhere...
Using AppGameKit V2 Tier 1
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 14th Aug 2018 23:32
Can't tell if you're being serious...

Incidentally I finally got the motorcycle I always wanted
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Aug 2018 16:36
Never serious...

Quote: "Incidentally I finally got the motorcycle I always wanted"

Is it this one?
Using AppGameKit V2 Tier 1
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 15th Aug 2018 23:31 Edited at: 15th Aug 2018 23:37
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 16th Aug 2018 09:39
Nice, but you can't eat it when you are done riding it...
Using AppGameKit V2 Tier 1
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 16th Aug 2018 13:30
That's disappointingly true, though to be honest I couldn't eat the other one either with all that disgusting fake cheese on it.
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 18th Aug 2018 12:51 Edited at: 18th Aug 2018 12:54
Ah nice, I passed my test on a CBF600, so a cousin, I guess, but I am loving my Kawasaki Vulcan S, been riding her for 4 weeks now and she rides beautifully. We can start out own motorcycle club on the forums. And Baxslash can bring his pure American sandwich.

Also, I have gotten into this thing that the kids are totally down with these days and I don't mean Tide Pods, but Monster Hunter World, I managed to snap this screenshot and in my head all I'm am thinking is "ow my hair, my hair, please not the hair". Derek Zoolander would not stand for this. I mean, the dude can breathe ice, but nope, straight for the hair.
The Slayer
Forum Vice President
15
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 28th Aug 2018 04:59
Quote: "Hey, anyone know what happened to the posting competition? I can't find it anywhere..."

Damn, bax...where have you've been dude? Everything okay, mate ? What you've been up to, lol?
Quote: \"Close those quotes before they start to spread!...too late! Aaaaaagh!!!
Maindric
15
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 30th Aug 2018 02:06
This post is still going strong. I wonder how much longer until it kills the forum.
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 30th Aug 2018 02:43
Maindric
15
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 30th Aug 2018 22:15
That is too true.
The Slayer
Forum Vice President
15
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 31st Aug 2018 18:16
Exactly.
Quote: \"Close those quotes before they start to spread!...too late! Aaaaaagh!!!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Sep 2018 14:20
Quote: "Damn, bax...where have you've been dude? Everything okay, mate ? What you've been up to, lol?"

Hi! Just been busy I guess. Family and work etc. I haven't had much time for making games but still playing around with AppGameKit occasionally
I'm working for a German CAD software company these days.
Forum Vice President ey
Good to see you're still around my friend!
Using AppGameKit V2 Tier 1
The Slayer
Forum Vice President
15
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 4th Sep 2018 05:12
Quote: "I haven't had much time for making games but still playing around with AppGameKit occasionally "

Sorry to hear, mate! But yeah...finding enough time when you have family, work, etc...is hard. I do find time almost every day, but it's much less then it used to be .

Quote: "Forum Vice President ey "

Yep, lol! Finally made it to the top ! Soon the whole world will be mine...and metal will be the only kinda music that people will listen to !

Good to see you around too mate!
Quote: \"Close those quotes before they start to spread!...too late! Aaaaaagh!!!
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
The Slayer
Forum Vice President
15
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 4th Sep 2018 15:04
Quote: "I love how we have two vice presidents "

Well...as long as you don't stand in my way when I conquer the world (and later the universe), I don't mind . Or, you could be my vice(*2) president and help me achieve my goal .
Quote: \"Close those quotes before they start to spread!...too late! Aaaaaagh!!!
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 4th Sep 2018 23:35 Edited at: 4th Sep 2018 23:35
Quote: "Or, you could be my vice(*2) president and help me achieve my goal"

Works for me! I'm pretty sure you were the more recent VP so I'll just be Vice Vice President
The Slayer
Forum Vice President
15
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 5th Sep 2018 05:15
Quote: "Works for me! I'm pretty sure you were the more recent VP so I'll just be Vice Vice President "

Excellent!

Quote: \"Close those quotes before they start to spread!...too late! Aaaaaagh!!!
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 7th Sep 2018 23:27
Quote: ".and metal will be the only kinda music that people will listen to"


The first step is assimilation.

"But daaaaad I want to listen to the Backstreet Boys, gosh!"
"Okay."



Quote: "I love how we have two vice presidents"


It is to account for the inevitable assassination. Who will it be, let's ask our friend for the audience, Mr John Wilkes Booth! Who will you be assassinating today, is it contestant number 1 or contestant number 2?
Seditious
11
Years of Service
User Offline
Joined: 2nd Aug 2013
Location: France
KeithC
Senior Moderator
19
Years of Service
User Offline
Joined: 27th Oct 2005
Location: Michigan
Posted: 26th Oct 2018 16:16
I claim Uber-Mod Privilege, or U.M.P.; and therefore claim a point.
-Keith
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 27th Oct 2018 19:32
I claim Particularly Irritating Mod Privileges, or PIMP.
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 27th Oct 2018 22:57 Edited at: 27th Oct 2018 22:57
I claim nothing... but in doing so, I claim a point

And page, apparently.

Login to post a reply

Server time is: 2024-11-21 13:21:23
Your offset time is: 2024-11-21 13:21:23