Skip to content

kevbuh/2048-assembly-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048-assembly-vm

LC3 assembly VM that plays the 2048 game inside your terminal.

How to play

Download and type the following into the console:

gcc lc3.c && ./a.out 2048.obj

Project Information

LC-3 Assembly

Tutorial: https://www.jmeiners.com/lc3-vm/

LC3 ISA Docs: https://www.jmeiners.com/lc3-vm/supplies/lc3-isa.pdf

.ORIG x3000                        ; memory address where program will be loaded
LEA R0, HELLO_STR                  ; load address of HELLO_STR string into R0
PUTs                               ; output string pointed to by R0 to console
HALT                               ; halt program
HELLO_STR .STRINGZ "Hello World!"  ; store string here in the program
.END                               ; mark end of the file

ISA Formats

About

VM to play 2048 using LC3 assembly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages