[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>this was all done in x86 asm

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 45
Thread images: 4

File: image_302934_16x9_940.jpg (186KB, 940x529px) Image search: [Google]
image_302934_16x9_940.jpg
186KB, 940x529px
>this was all done in x86 asm
>>
>>43748784
>Some functions were written in C for interaction with the Windows operating system and DirectX
Yea okay.
>>
we know, now fuck off
>>
>>43748811
I'd still say that all the core game functionality was inn asm though.

I wonder why he did it, C compilers should have been good enough back in the mid 90s?
>>
>>43748784
Really? Please source
>>
>>43748784
It took 3 years and that was building off his existing game engine. Better get to work on yours.
>>
>>43748847
http://www.chrissawyergames.com/faq3.htm

take it from the man himself
>>
>>43748843
Apparently it was 99% asm, but that 1% written in C if converted to asm would have been a much higher percentage of the work. I would assume he did it simply to enlarge his epen.
>>
If it were written in C++:
>class and generics
>C/C++ library to use
>use an external graphics library
>Can compile to 32-bit and 62-bit code, even cross platform with extra code and wrappers
>More manageable
>Easier to find bugs
>Way less time to write it

>inb4 muh c lang
>>
Yes, and?
>>
>>43748968
>can't run on 90s home pcs due to resource requirements now
>>
Why not write it in JavaScript though?
>>
>>43748968
>62 bit
>>
>>43749025
HN/10
>>
>>43748968
If it were written in Unity:
>finished in under a day
>>
>>43748894
If you've ever written Windows API code in an assembler like nasm you'll see why he did it. However fasm would be okay to write WinAPI in.
>>
pop eax
#end of the ride
jmp startoftheride
>>
File: 1360002679019.jpg (120KB, 497x640px)
1360002679019.jpg
120KB, 497x640px
>>43749195
>>
>>43748811
Am I the only one finding it funny how the only thing he couldn't do in ASM is the interaction with the operating system?

I mean, seriously, what the fuck Windows.
>>
>MS Macro Assembler
This makes a big difference.
>>
And it was a shitty game. Real cames use pure C++.
>>
>>43750233
Stay mad :^)
>>
>>43749820
Windows doesn't do syscalls like Linux, making writing assembly productively much much more difficult
>>
>>43748784

What would the requirements of Crysis 3 be if it was written in x64 ASM? Also if it used C to interact with the OpenGL library how easy would it be to port to Linux/Mac/BSD?
>>
>>43749820
MSVC name mangling is a hell of a drug.
>>
>>43748784
great game 10/10
>>
>>43749091
Hilarious joke amigo
http://martiancraft.com/blog/2014/08/an-unreal-decision/
Now go back to >>>/agdg/
>>
>>43748784
>asm
You missed some letters..
aUTIsm.

Seriously though this is damn impressive, must have taken forever.
>>
>>43752019
>What would the requirements of Crysis 3 be if it was written in x64 ASM?
Depends even moreso on the programmer
>Also if it used C to interact with the OpenGL library how easy would it be to port to Linux/Mac/BSD?
Same as if it had been written completely in C. The libraries still change between OSes. The fact you did some inline ASM means nothing to protability except in cases where you want to go to different architectures.
>>
>>43750233
>C++
>Pure
>>
>>43752019
They probably wouldn't change that much but the overall size of the game would get a whole lot smaller.
>>
Nigga, if you learn x86 asm you will realise it's not that hard.
>>
>>43755312
>Implying 98% of the game size isn't assets
>>
>>43755312
I implied no such thing. It would still be a huge game just a couple gigs lighter.
>>
File: nosgba.jpg (179KB, 329x535px) Image search: [Google]
nosgba.jpg
179KB, 329x535px
>>43748784
>This was TRULY all done in x86 ASM
>>
>>43748784
I have the largest erection right now knowing that one of my favorite childhood games was written in fucking x86
>>
i dont see why yall'z impressed
Asm isnt that difficult
its slower to write than C and you have to juggle the stack, thats really it
as long as you make note of your registers, asm's easy to work with
if you dont, debugging becomes a pain.
>>
>>43750233
>Rollercoaster Tycoon
>shitty game

Congratulations, this is the first post to make me genuinely mad on 4chan since 2010.
>>
>>43755919
It's no cawadoody, anon.
>>
>>43755602
I'm assuming you mean the emulator.
>>
>MOVLW 0x55
>MOVWF 0x40
>>
>>43749820
>>43751431
>>43752242
Last time I tried NASM and Win32, I ended up blackout drunk and waking up to the program I was trying to do written in Perl.
>>
>>43757601
drunk programming is always fun
>>
>>43757629
The aftermath is always like waking up in someone elses house and not realizing it until you open the fridge.
>>
File: 1396993477044.png (2MB, 3015x2121px) Image search: [Google]
1396993477044.png
2MB, 3015x2121px
>>43748784
>this was all done in ASM
Thread posts: 45
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.