Skip to content

kt3k/deno_td4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno_td4

TD4 emulator written in Deno (TypeScript)

Build Status

Run emulator

The module exports run function, which runs the TD4 program with the given input. run takes two arguments program: number[] and input: number. run returns the array of output of the program and input.

import { run } from "https://raw.githubusercontent.com/kt3k/deno_td4/master/mod.ts";

console.log(run([0x20, 0x08, 0xe4, 0x05, 0x01, 0x40, 0x90], 0x8))
// This outputs [ 6 ], which is the result of the above program and input

License

MIT

About

TD4 emulator in deno (TypeScript)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors