[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
>this was all done in x86 asm
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 45
Thread images: 4
>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 (120 KB, 497x640) Image search: [iqdb] [SauceNao] [Google]
1360002679019.jpg
120 KB, 497x640
>>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 (179 KB, 329x535) Image search: [iqdb] [SauceNao] [Google]
nosgba.jpg
179 KB, 329x535
>>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 (2 MB, 3015x2121) Image search: [iqdb] [SauceNao] [Google]
1396993477044.png
2 MB, 3015x2121
>>43748784
>this was all done in ASM
Thread replies: 45
Thread images: 4
Thread DB ID: 11245



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

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

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 shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.