Git Product home page Git Product logo

asm_c_cpp's Introduction

An implementation of breakout in x86 assembly, C and C++.

Configure and Build

Linux

$ cmake -S . -B build
$ cmake --build build --parallel 8

Optionally you could configure for Release/Debug builds
$ cmake -S . -B build/debug -DCMAKE_BUILD_TYPE=DEBUG
$ cmake -S . -B build/release -DCMAKE_BUILD_TYPE=RELEASE

Windows

c:\> cmake -S . -B build
c:\> cmake --build build --config Release

Or you can just open the solution and build in the GUI
c:\> start build\asm_c_cpp.sln

asm_c_cpp's People

Contributors

chazste avatar nathan-baggs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

asm_c_cpp's Issues

Linker error: `cannot find -lSDL2d`

(On Ubuntu)

The C++ and C programs seem to want to link to SDL2d but no such target gets built for me. What gets built is libSDL2.a, which I'm able to link to after renaming SDL2d -> SDL2 inside both target_link_libraries CMake commands. This probably isn't intended though, is it? What am I doing wrong?

I'm also not sure if the game built this way works as intended, because it seems to be missing a lot of features (no win condition, no way to close the game window, no way to lose the game, etc...). The demo on Youtube doesn't show how complete this game is supposed to be. If this is as intended, you might want to at least mention in the README that it's not feature complete, lest people wonder what they're doing wrong.

Assembly Compilation error

I tried to compile your project on my Ubuntu 22.04. And i gained the following error:

[ 96%] Building ASM_NASM object asm/CMakeFiles/asm_game.dir/utils.asm.o
/var/www/asm_c_cpp/asm/utils.asm:103: error: expected `,'

Looking at this code it looks like this:

reverse_loop_start:
cmp rcx, 0x

Shouldnt the 0x be something like 0x0?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.