language_templates 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/languages/#/0815.0815 +4 -0
- data/bin/languages/#/1c-enterprise +2 -0
- data/bin/languages/#/2B.2b +1 -0
- data/bin/languages/#/4gl.4gl +3 -0
- data/bin/languages/#/4test +2 -0
- data/bin/languages/#/4thdimension.4dd +4 -0
- data/bin/languages/#/~English.ext +2 -0
- data/bin/languages/a/ACIDIC.acidic +2 -0
- data/bin/languages/a/ACRONYM.acronym +8 -0
- data/bin/languages/a/ALAGUF.alaguf +1 -0
- data/bin/languages/a/ALGOL-W.algol +3 -0
- data/bin/languages/a/Aeolbonn.aeo +2 -0
- data/bin/languages/a/Amiga-E.amiga-e +1 -0
- data/bin/languages/a/AntLang.ant +1 -0
- data/bin/languages/a/abap.abap +6 -0
- data/bin/languages/a/abc.abc +1 -0
- data/bin/languages/a/acpi +6 -0
- data/bin/languages/a/acs.acs +6 -0
- data/bin/languages/a/actionscript.as +15 -0
- data/bin/languages/a/actionscript2.as +1 -0
- data/bin/languages/a/actionscript3.as +32 -0
- data/bin/languages/a/actionscript_flashmx.as +12 -0
- data/bin/languages/a/ada.ada +5 -0
- data/bin/languages/a/advpl +5 -0
- data/bin/languages/a/aeolbonn.aeolbonn +2 -0
- data/bin/languages/a/agda.agda +4 -0
- data/bin/languages/a/aheui.aheui +8 -0
- data/bin/languages/a/aime.aime +7 -0
- data/bin/languages/a/aiml.aiml +6 -0
- data/bin/languages/a/alda.alda +1 -0
- data/bin/languages/a/algae.algae +1 -0
- data/bin/languages/a/algol60.algol60 +6 -0
- data/bin/languages/a/algol68.algol68 +3 -0
- data/bin/languages/a/alore.alore +1 -0
- data/bin/languages/a/amos +1 -0
- data/bin/languages/a/android.java +16 -0
- data/bin/languages/a/angelscript +1 -0
- data/bin/languages/a/angular.js +2 -0
- data/bin/languages/a/ante.ante +1 -0
- data/bin/languages/a/apc.apc +4 -0
- data/bin/languages/a/apl.apl +2 -0
- data/bin/languages/a/applescript.scpt +1 -0
- data/bin/languages/a/arduino.ino +4 -0
- data/bin/languages/a/arena.are +1 -0
- data/bin/languages/a/argh.agh +3 -0
- data/bin/languages/a/arnoldc.arnoldc +3 -0
- data/bin/languages/a/ash.ash +5 -0
- data/bin/languages/a/asp.asp +4 -0
- data/bin/languages/a/assembler_6502.asm +22 -0
- data/bin/languages/a/assembler_6502appleII.asm +6 -0
- data/bin/languages/a/assembler_6502c64.asm +11 -0
- data/bin/languages/a/assembler_6809vectrex.asm +33 -0
- data/bin/languages/a/assembler_8048_videopac.asm +50 -0
- data/bin/languages/a/assembler_DCPU16.asm +45 -0
- data/bin/languages/a/assembler_arm.s +14 -0
- data/bin/languages/a/assembler_atari2600.asm +194 -0
- data/bin/languages/a/assembler_fasm_dos.asm +16 -0
- data/bin/languages/a/assembler_ibm360.asm +8 -0
- data/bin/languages/a/assembler_intel.asm +24 -0
- data/bin/languages/a/assembler_lc-3.asm +6 -0
- data/bin/languages/a/assembler_m68000_amigaos.asm +33 -0
- data/bin/languages/a/assembler_masm_dos.asm +17 -0
- data/bin/languages/a/assembler_masm_win32.asm +35 -0
- data/bin/languages/a/assembler_masm_win64.asm +33 -0
- data/bin/languages/a/assembler_mips.asm +9 -0
- data/bin/languages/a/assembler_mmix.asm +9 -0
- data/bin/languages/a/assembler_nasm_freebsd.asm +31 -0
- data/bin/languages/a/assembler_nasm_linux.asm +20 -0
- data/bin/languages/a/assembler_nasm_linux64.asm +20 -0
- data/bin/languages/a/assembler_tasm_dos.asm +20 -0
- data/bin/languages/a/assembler_tms9900_ti99_4a.asm +44 -0
- data/bin/languages/a/assembler_vax_ultrix.asm +13 -0
- data/bin/languages/a/assembler_z80_knightos.asm +18 -0
- data/bin/languages/a/assembler_z80_ti83calculator.asm +20 -0
- data/bin/languages/a/assembler_z80_zxspectrum.asm +21 -0
- data/bin/languages/a/autohotkey.ahk +1 -0
- data/bin/languages/a/autoit.au3 +1 -0
- data/bin/languages/a/awk.awk +2 -0
- data/bin/languages/b/B.b +10 -0
- data/bin/languages/b/BCPL.bcl +6 -0
- data/bin/languages/b/BIT.bit +81 -0
- data/bin/languages/b/BLC.Blc +1 -0
- data/bin/languages/b/BRZRK.brzrk +1 -0
- data/bin/languages/b/BennuGD +6 -0
- data/bin/languages/b/BitBitJump.bbj +13 -0
- data/bin/languages/b/BlackRum.br +1 -0
- data/bin/languages/b/Brainloller.png +0 -0
- data/bin/languages/b/bash.bash +3 -0
- data/bin/languages/b/basic.bas +2 -0
- data/bin/languages/b/batch.bat +3 -0
- data/bin/languages/b/batsh.batsh +1 -0
- data/bin/languages/b/battlestar.bts +3 -0
- data/bin/languages/b/beatnik.beatnik +89 -0
- data/bin/languages/b/befunge.be +1 -0
- data/bin/languages/b/beta.bet +4 -0
- data/bin/languages/b/blitz3d.bb +4 -0
- data/bin/languages/b/blub.blub +13 -0
- data/bin/languages/b/boo.boo +1 -0
- data/bin/languages/b/brainf-ck-2d.bf2d +94 -0
- data/bin/languages/b/brainf-ck.bf +1 -0
- data/bin/languages/b/broccoli.brocc +1 -0
- data/bin/languages/b/burlesque.burlesque +1 -0
- data/bin/languages/b/byter.byter +16 -0
- data/bin/languages/c/Casio BASIC +1 -0
- data/bin/languages/c/ContinuesEquation.ce +1 -0
- data/bin/languages/c/c++.cpp +9 -0
- data/bin/languages/c/c.c +6 -0
- data/bin/languages/c/caml.ml +1 -0
- data/bin/languages/c/cardinal.cardinal +1 -0
- data/bin/languages/c/cat.cat +1 -0
- data/bin/languages/c/centura.centura +10 -0
- data/bin/languages/c/ceylon.ceylon +3 -0
- data/bin/languages/c/cgi.c +16 -0
- data/bin/languages/c/chapel.chpl +1 -0
- data/bin/languages/c/cheddar.cheddar +1 -0
- data/bin/languages/c/chef.ch +65 -0
- data/bin/languages/c/chicken.chicken +59 -0
- data/bin/languages/c/cil.il +10 -0
- data/bin/languages/c/clean.icl +3 -0
- data/bin/languages/c/clipper.clipper +1 -0
- data/bin/languages/c/clipper.prg +1 -0
- data/bin/languages/c/clips.clips +8 -0
- data/bin/languages/c/clisp.lisp +1 -0
- data/bin/languages/c/clojure.clj +1 -0
- data/bin/languages/c/cobol.cbl +6 -0
- data/bin/languages/c/coconut.coc +1 -0
- data/bin/languages/c/coffeescript.coffee +1 -0
- data/bin/languages/c/coldfusion.cfm +2 -0
- data/bin/languages/c/common-lisp.lisp +4 -0
- data/bin/languages/c/cool.cl +5 -0
- data/bin/languages/c/cor.cor +1 -0
- data/bin/languages/c/crystal.cr +1 -0
- data/bin/languages/c/csh.csh +2 -0
- data/bin/languages/c/csharp.cs +5 -0
- data/bin/languages/c/css.css +3 -0
- data/bin/languages/c/cypherNeo4j.cypher +3 -0
- data/bin/languages/c/hello-world.curry +7 -0
- data/bin/languages/d/DCL +1 -0
- data/bin/languages/d/DNA#.dna +124 -0
- data/bin/languages/d/DNA-Sharp.dna +125 -0
- data/bin/languages/d/DOGO.dogo +32 -0
- data/bin/languages/d/DUP.dup +2 -0
- data/bin/languages/d/Dart.dart +3 -0
- data/bin/languages/d/Decimal.dec +18 -0
- data/bin/languages/d/Drive-In Window.diw +41 -0
- data/bin/languages/d/Dyvil.dyv +4 -0
- data/bin/languages/d/d.d +7 -0
- data/bin/languages/d/dark.txt +12 -0
- data/bin/languages/d/db2.sql +1 -0
- data/bin/languages/d/dc.dc +2 -0
- data/bin/languages/d/dd_dd.dd +1 -0
- data/bin/languages/d/delphi.delphi +8 -0
- data/bin/languages/d/delphi.pas +6 -0
- data/bin/languages/d/dis.dis +11 -0
- data/bin/languages/d/divzeros.dz +1 -0
- data/bin/languages/d/dogescript.djs +3 -0
- data/bin/languages/d/dos.bat +1 -0
- data/bin/languages/d/dtrace.d +5 -0
- data/bin/languages/d/dylan.dl +5 -0
- data/bin/languages/e/EOOOL.eoool +1 -0
- data/bin/languages/e/Eiffel.eiff +18 -0
- data/bin/languages/e/EmacsLisp.el +3 -0
- data/bin/languages/e/ebuild.ebuild +19 -0
- data/bin/languages/e/elixir.ex +1 -0
- data/bin/languages/e/elixir.exs +2 -0
- data/bin/languages/e/emmental.emmental +1 -0
- data/bin/languages/e/emojicode.emojic +6 -0
- data/bin/languages/e/emoticon.emoticon +1 -0
- data/bin/languages/e/erlang_hw.erl +5 -0
- data/bin/languages/e/hello-html.elm +4 -0
- data/bin/languages/f/factor.factor +3 -0
- data/bin/languages/f/falcon.fal +3 -0
- data/bin/languages/f/false.f +2 -0
- data/bin/languages/f/fancy.fy +1 -0
- data/bin/languages/f/fantom.fan +6 -0
- data/bin/languages/f/ferite.fe +2 -0
- data/bin/languages/f/fish.fish +2 -0
- data/bin/languages/f/fjoelnir.fjo +11 -0
- data/bin/languages/f/fob.fob +1 -0
- data/bin/languages/f/focal.fc +1 -0
- data/bin/languages/f/fog.fog.md +1 -0
- data/bin/languages/f/foo.foo +1 -0
- data/bin/languages/f/forobj.forobj +1 -0
- data/bin/languages/f/forth.fth +1 -0
- data/bin/languages/f/fortob.fortob +2 -0
- data/bin/languages/f/fortran.f90 +3 -0
- data/bin/languages/f/fortran77.f77 +3 -0
- data/bin/languages/f/fourier.fourier +1 -0
- data/bin/languages/f/fsharp.fs +1 -0
- data/bin/languages/g/GASOIL.gasoil +2 -0
- data/bin/languages/g/Green-Marl.gm +3 -0
- data/bin/languages/g/GridScript.gridscript +7 -0
- data/bin/languages/g/gammaplex.gammaplex +1 -0
- data/bin/languages/g/gecho.gecho +1 -0
- data/bin/languages/g/gentzen.gentzen +5 -0
- data/bin/languages/g/geojson.geojson +1 -0
- data/bin/languages/g/gibberish.gibberish +2 -0
- data/bin/languages/g/glass.glass +1 -0
- data/bin/languages/g/go.go +7 -0
- data/bin/languages/g/golfscript.golfscript +1 -0
- data/bin/languages/g/golo.golo +5 -0
- data/bin/languages/g/googleappscript.gs +3 -0
- data/bin/languages/g/gosu.gosu +1 -0
- data/bin/languages/g/gosu.gs +1 -0
- data/bin/languages/g/gri.gri +1 -0
- data/bin/languages/g/grin.grin +1 -0
- data/bin/languages/g/groovy.groovy +1 -0
- data/bin/languages/h/HEX.hex +4 -0
- data/bin/languages/h/HOP +6 -0
- data/bin/languages/h/Higher Subleq.higher_subleq +5 -0
- data/bin/languages/h/hack.hh +2 -0
- data/bin/languages/h/haskell.hs +3 -0
- data/bin/languages/h/haxe.hx +5 -0
- data/bin/languages/h/hexish.hexish +1 -0
- data/bin/languages/h/hodor.hd +1 -0
- data/bin/languages/h/hollow.hollow +1 -0
- data/bin/languages/h/homespring.homespring +3 -0
- data/bin/languages/h/hq9+.h +1 -0
- data/bin/languages/h/html.html +9 -0
- data/bin/languages/h/hy.hy +1 -0
- data/bin/languages/h/hypertalk.ht +1 -0
- data/bin/languages/i/IDL +2 -0
- data/bin/languages/i/INCAL.incal +2 -0
- data/bin/languages/i/ISLISP.lisp +1 -0
- data/bin/languages/i/IcedCoffeeScript.ics +1 -0
- data/bin/languages/i/InDec.indec +17 -0
- data/bin/languages/i/Io.Io +1 -0
- data/bin/languages/i/ibm1401 +2 -0
- data/bin/languages/i/ici.ici +1 -0
- data/bin/languages/i/icon.icn +3 -0
- data/bin/languages/i/idris.idr +4 -0
- data/bin/languages/i/il.il +52 -0
- data/bin/languages/i/inform.inform +5 -0
- data/bin/languages/i/ink.ink +1 -0
- data/bin/languages/i/intercal.i +16 -0
- data/bin/languages/i/ioke.ik +1 -0
- data/bin/languages/i/irc +1 -0
- data/bin/languages/i/iscom.iscom +1 -0
- data/bin/languages/j/JSF*ck.js +1 -0
- data/bin/languages/j/JSONiq +1 -0
- data/bin/languages/j/Jasmin.j +10 -0
- data/bin/languages/j/Java.java +5 -0
- data/bin/languages/j/j.ijs +3 -0
- data/bin/languages/j/jade.jade +5 -0
- data/bin/languages/j/jai.jai +7 -0
- data/bin/languages/j/jason.mas2j +2 -0
- data/bin/languages/j/javascript.js +1 -0
- data/bin/languages/j/jess.cpl +1 -0
- data/bin/languages/j/json.json +1 -0
- data/bin/languages/j/jsx.js +8 -0
- data/bin/languages/j/julia.jl +1 -0
- data/bin/languages/k/KimL.kiml +1 -0
- data/bin/languages/k/k.k +1 -0
- data/bin/languages/k/karel.kl +4 -0
- data/bin/languages/k/kipple.kipple +1 -0
- data/bin/languages/k/kitten.ktn +1 -0
- data/bin/languages/k/kotlin.kt +5 -0
- data/bin/languages/k/ksh.ksh +2 -0
- data/bin/languages/l/LNUSP.lnusp +51 -0
- data/bin/languages/l/LOLA.lola +23 -0
- data/bin/languages/l/LaTeX.tex +4 -0
- data/bin/languages/l/LazyK.lazy +10 -0
- data/bin/languages/l/labyrinth.labyrinth +2 -0
- data/bin/languages/l/leszek.leszek +1 -0
- data/bin/languages/l/limbo.b +16 -0
- data/bin/languages/l/lisaac.li +15 -0
- data/bin/languages/l/lisp.lsp +6 -0
- data/bin/languages/l/livescript.ls +1 -0
- data/bin/languages/l/llvm.ll +14 -0
- data/bin/languages/l/logical.logical +1 -0
- data/bin/languages/l/logo.lg +1 -0
- data/bin/languages/l/lolcode.lol +4 -0
- data/bin/languages/l/lolpython.lol +1 -0
- data/bin/languages/l/lsl.lsl +7 -0
- data/bin/languages/l/lua.lua +1 -0
- data/bin/languages/m/Mmmm().mmmm +60 -0
- data/bin/languages/m/m4.m4 +1 -0
- data/bin/languages/m/macsyma.mac +2 -0
- data/bin/languages/m/magic +3 -0
- data/bin/languages/m/malbolge.mbg +2 -0
- data/bin/languages/m/markdown.md +1 -0
- data/bin/languages/m/mathematica-online.nb +3 -0
- data/bin/languages/m/matlab.m +1 -0
- data/bin/languages/m/maxscript.ms +7 -0
- data/bin/languages/m/mel.mel +4 -0
- data/bin/languages/m/meq.meq +1 -0
- data/bin/languages/m/mercury.m +8 -0
- data/bin/languages/m/mirc.mrc +1 -0
- data/bin/languages/m/modula-2.mod +10 -0
- data/bin/languages/m/modula-3.m3 +5 -0
- data/bin/languages/m/mongo.shell +1 -0
- data/bin/languages/m/moonscript.moon +1 -0
- data/bin/languages/m/morsecode +1 -0
- data/bin/languages/m/mouse.mse +3 -0
- data/bin/languages/m/move.mv +1 -0
- data/bin/languages/m/mozart.oz +8 -0
- data/bin/languages/m/muf.muf +3 -0
- data/bin/languages/m/mumps.m +1 -0
- data/bin/languages/m/mushcode.mush +1 -0
- data/bin/languages/m/myrddin.myr +6 -0
- data/bin/languages/m/mysql.sql +1 -0
- data/bin/languages/n/neko.neko +1 -0
- data/bin/languages/n/nemerle.n +7 -0
- data/bin/languages/n/newtonscript.nwt +15 -0
- data/bin/languages/n/nice.nice +3 -0
- data/bin/languages/n/nim.nim +1 -0
- data/bin/languages/n/nit.nit +2 -0
- data/bin/languages/n/node.js +1 -0
- data/bin/languages/n/nodejs.js +3 -0
- data/bin/languages/n/novice.novice +3 -0
- data/bin/languages/n/nu.nu +1 -0
- data/bin/languages/n/nxc.nxc +4 -0
- data/bin/languages/o/ObjectStar +1 -0
- data/bin/languages/o/OpenLaszlo.lzx +3 -0
- data/bin/languages/o/Orc.orc +10 -0
- data/bin/languages/o/oberon-2.obn +6 -0
- data/bin/languages/o/oberon.o +8 -0
- data/bin/languages/o/obix.osc +1 -0
- data/bin/languages/o/obj.st +1 -0
- data/bin/languages/o/objc.m +14 -0
- data/bin/languages/o/objective-j.j +1 -0
- data/bin/languages/o/ocaml.ml +1 -0
- data/bin/languages/o/octave.octave +2 -0
- data/bin/languages/o/omgrofl.omgrofl +23 -0
- data/bin/languages/o/ooc.ooc +4 -0
- data/bin/languages/o/ook.ok +19 -0
- data/bin/languages/o/opa.opa +1 -0
- data/bin/languages/o/oraclesql.sql +1 -0
- data/bin/languages/o/oz.oz +1 -0
- data/bin/languages/p/hello_world.pl1 +4 -0
- data/bin/languages/p/parenthetic.p +13 -0
- data/bin/languages/p/pascal.p +5 -0
- data/bin/languages/p/pawn.p +5 -0
- data/bin/languages/p/pb.pwr +5 -0
- data/bin/languages/p/pbwin.bas +8 -0
- data/bin/languages/p/pebble.c +51 -0
- data/bin/languages/p/perl.cgi +9 -0
- data/bin/languages/p/perl.pl +2 -0
- data/bin/languages/p/perl6.p6 +6 -0
- data/bin/languages/p/perseus.p++ +10 -0
- data/bin/languages/p/pharo.st +1 -0
- data/bin/languages/p/php.php +3 -0
- data/bin/languages/p/picat.pi +2 -0
- data/bin/languages/p/piet.png +0 -0
- data/bin/languages/p/pig.pig +1 -0
- data/bin/languages/p/pike.pike +4 -0
- data/bin/languages/p/pit.pit +326 -0
- data/bin/languages/p/pizza.pizza +5 -0
- data/bin/languages/p/please_porige_hot.pph +1 -0
- data/bin/languages/p/plsql.sql +4 -0
- data/bin/languages/p/pluvo.pvo +1 -0
- data/bin/languages/p/polynomial.pol +1 -0
- data/bin/languages/p/pony.pony +3 -0
- data/bin/languages/p/postgresql.sql +1 -0
- data/bin/languages/p/postscript.ps +2 -0
- data/bin/languages/p/postscript_page.ps +11 -0
- data/bin/languages/p/posxml.posxml +1 -0
- data/bin/languages/p/potigol.poti +1 -0
- data/bin/languages/p/powershell.ps1 +1 -0
- data/bin/languages/p/processing.pde +5 -0
- data/bin/languages/p/prolog.pro +4 -0
- data/bin/languages/p/purebasic.pb +3 -0
- data/bin/languages/p/purescript.purs +5 -0
- data/bin/languages/p/pyret.arr +1 -0
- data/bin/languages/p/python.py +2 -0
- data/bin/languages/p/python3.py +2 -0
- data/bin/languages/q/Qbasic.bas +2 -0
- data/bin/languages/q/QuakeC.qc +1 -0
- data/bin/languages/q/QuartzComposer.qtz +233 -0
- data/bin/languages/q/q.q +1 -0
- data/bin/languages/q/qore.q +13 -0
- data/bin/languages/q/qu.qu +2 -0
- data/bin/languages/q/qugord.qugord +2 -0
- data/bin/languages/q/qwerty.qwerty +6 -0
- data/bin/languages/r/R.R +1 -0
- data/bin/languages/r/racket.rkt +2 -0
- data/bin/languages/r/radixal.radixal +2 -0
- data/bin/languages/r/ratfor.ratfor +2 -0
- data/bin/languages/r/reStructuredText.rst +4 -0
- data/bin/languages/r/react.js +3 -0
- data/bin/languages/r/reason.re +1 -0
- data/bin/languages/r/rebol.r +1 -0
- data/bin/languages/r/recurse.recurse +30 -0
- data/bin/languages/r/rexx.rexx +2 -0
- data/bin/languages/r/richtea.tea +1 -0
- data/bin/languages/r/roco.roco +14 -0
- data/bin/languages/r/roy.roy +1 -0
- data/bin/languages/r/ruby.rb +2 -0
- data/bin/languages/r/rust.rs +3 -0
- data/bin/languages/s/S-algol +2 -0
- data/bin/languages/s/SIL.SIL +1 -0
- data/bin/languages/s/SendStuff.ss +13 -0
- data/bin/languages/s/hello.st +1 -0
- data/bin/languages/s/sacred.sacred +1 -0
- data/bin/languages/s/sal.s +5 -0
- data/bin/languages/s/sas.sas +5 -0
- data/bin/languages/s/sather.sa +7 -0
- data/bin/languages/s/scala.scala +3 -0
- data/bin/languages/s/scheme.scm +1 -0
- data/bin/languages/s/schwift.y +1 -0
- data/bin/languages/s/scilab.scilab +3 -0
- data/bin/languages/s/scratch.sb +0 -0
- data/bin/languages/s/sed.sed +4 -0
- data/bin/languages/s/self.self +1 -0
- data/bin/languages/s/semicolon +13 -0
- data/bin/languages/s/shakespeare.spl +89 -0
- data/bin/languages/s/shell.sh +2 -0
- data/bin/languages/s/shen.shen +1 -0
- data/bin/languages/s/simpl+.usp +5 -0
- data/bin/languages/s/simula.sim +4 -0
- data/bin/languages/s/slashes.slashes +1 -0
- data/bin/languages/s/smali.smali +15 -0
- data/bin/languages/s/smalltalk.sm +1 -0
- data/bin/languages/s/smil.smil +13 -0
- data/bin/languages/s/sml.sml +1 -0
- data/bin/languages/s/snowman.sm +1 -0
- data/bin/languages/s/soupscript.script +3 -0
- data/bin/languages/s/sparql.sparql +3 -0
- data/bin/languages/s/spoon.spoon +1 -0
- data/bin/languages/s/spss.spss +3 -0
- data/bin/languages/s/sql.sql +4 -0
- data/bin/languages/s/squirrel.nut +1 -0
- data/bin/languages/s/standard-ml.sml +3 -0
- data/bin/languages/s/stanza.stanza +2 -0
- data/bin/languages/s/streem.strm +1 -0
- data/bin/languages/s/stuck.stuck +1 -0
- data/bin/languages/s/stuck_0byte.stuck +1 -0
- data/bin/languages/s/subleq.sq +8 -0
- data/bin/languages/s/supercollider.sc +1 -0
- data/bin/languages/s/svg.svg +9 -0
- data/bin/languages/s/swift.swift +1 -0
- data/bin/languages/s/systemtap.stp +1 -0
- data/bin/languages/t/TTCN3.ttcn +7 -0
- data/bin/languages/t/Tao-Presentations.ddd +68 -0
- data/bin/languages/t/TapeBagel.tb +8 -0
- data/bin/languages/t/TeX.tex +2 -0
- data/bin/languages/t/TrumpScript.py +2 -0
- data/bin/languages/t/Turing.t +1 -0
- data/bin/languages/t/images/earth.bmp +0 -0
- data/bin/languages/t/images/milkyway.jpg +0 -0
- data/bin/languages/t/plain-text.txt +1 -0
- data/bin/languages/t/tcl.tcl +1 -0
- data/bin/languages/t/tcsh.tcsh +2 -0
- data/bin/languages/t/telephone +2 -0
- data/bin/languages/t/thp.hrp +6 -0
- data/bin/languages/t/thue.th +4 -0
- data/bin/languages/t/tibasic.ti +3 -0
- data/bin/languages/t/tk.tk +2 -0
- data/bin/languages/t/tri.tri +10 -0
- data/bin/languages/t/trollscript.troll +2 -0
- data/bin/languages/t/tsql.sql +3 -0
- data/bin/languages/t/turing.oot +1 -0
- data/bin/languages/t/typescript.ts +1 -0
- data/bin/languages/u/Ubercode.cls +8 -0
- data/bin/languages/u/ubiquity.ubiquity +3 -0
- data/bin/languages/u/umajin.u +2 -0
- data/bin/languages/u/unicomal.lst +1 -0
- data/bin/languages/u/unlambda.unl +1 -0
- data/bin/languages/v/V +1 -0
- data/bin/languages/v/Vowels.vw +17 -0
- data/bin/languages/v/vala.vala +5 -0
- data/bin/languages/v/vbnet.vb +5 -0
- data/bin/languages/v/verbose.verbose +25 -0
- data/bin/languages/v/verbosefuck.vbfk +160 -0
- data/bin/languages/v/verilog.v +7 -0
- data/bin/languages/v/verve.vrv +1 -0
- data/bin/languages/v/vhdl.vhdl +13 -0
- data/bin/languages/v/vi +15 -0
- data/bin/languages/v/vimscript.vim +1 -0
- data/bin/languages/v/virgil.v3 +3 -0
- data/bin/languages/v/visualbasic.vb +5 -0
- data/bin/languages/v/visualbasicscript.vbs +1 -0
- data/bin/languages/v/visualfoxpro.prg +17 -0
- data/bin/languages/v/vms.vms +4 -0
- data/bin/languages/v/vrml.wrl +6 -0
- data/bin/languages/w/wheat.wheat +6 -0
- data/bin/languages/w/whenever.whenever +1 -0
- data/bin/languages/w/whirl.wr +12 -0
- data/bin/languages/w/whitespace.ws +26 -0
- data/bin/languages/w/wml.wml +6 -0
- data/bin/languages/w/wolframlanguage.wl +1 -0
- data/bin/languages/w/wren.wren +1 -0
- data/bin/languages/w/wsh.vbs +2 -0
- data/bin/languages/x/XRF.xrf +12 -0
- data/bin/languages/x/x-D.xd +2 -0
- data/bin/languages/x/xbase++.prg +3 -0
- data/bin/languages/x/xbase.dbf +3 -0
- data/bin/languages/x/xl.xl +2 -0
- data/bin/languages/x/xlogo.lgo +53 -0
- data/bin/languages/x/xml.xml +2 -0
- data/bin/languages/x/xpl0.xpl +2 -0
- data/bin/languages/x/xquery.xq +2 -0
- data/bin/languages/x/xslt.xslt +6 -0
- data/bin/languages/x/xul.xul +4 -0
- data/bin/languages/y/Y.y +10 -0
- data/bin/languages/y/yaml.yaml +1 -0
- data/bin/languages/y/yolang.yo +1 -0
- data/bin/languages/z/zbd +1 -0
- data/bin/languages/z/zepto.zp +1 -0
- data/bin/languages/z/zetaplex.zeta +9 -0
- data/bin/languages/z/zim.zim +1 -0
- data/bin/languages/z/zimbu.zu +4 -0
- data/bin/languages/z/zombie.zombie +6 -0
- data/bin/languages/z/zonnon.znn +4 -0
- data/bin/languages/z/zsh.zsh +2 -0
- data/bin/setup +8 -0
- data/language_templates.gemspec +36 -0
- data/lib/language_templates/version.rb +3 -0
- data/lib/language_templates.rb +529 -0
- metadata +604 -0
@@ -0,0 +1,194 @@
|
|
1
|
+
;
|
2
|
+
; hello.asm
|
3
|
+
;
|
4
|
+
; A "Hello, World!" which illustrates an Atari 2600 programming
|
5
|
+
; introduction talk (slides at http://slideshare.net/chesterbr).
|
6
|
+
;
|
7
|
+
; This is free software (see license below). Build it with DASM
|
8
|
+
; (http://dasm-dillon.sourceforge.net/), by running:
|
9
|
+
;
|
10
|
+
; dasm hello.asm -ohello.bin -f3
|
11
|
+
;
|
12
|
+
|
13
|
+
PROCESSOR 6502
|
14
|
+
INCLUDE "vcs.h"
|
15
|
+
|
16
|
+
ORG $F000 ; Start of "cart area" (see Atari memory map)
|
17
|
+
|
18
|
+
StartFrame:
|
19
|
+
lda #%00000010 ; Vertical sync is signaled by VSYNC's bit 1...
|
20
|
+
sta VSYNC
|
21
|
+
REPEAT 3 ; ...and lasts 3 scanlines
|
22
|
+
sta WSYNC ; (WSYNC write => wait for end of scanline)
|
23
|
+
REPEND
|
24
|
+
lda #0
|
25
|
+
sta VSYNC ; Signal vertical sync by clearing the bit
|
26
|
+
|
27
|
+
PreparePlayfield: ; We'll use the first VBLANK scanline for setup
|
28
|
+
lda #$00 ; (could have done it before, just once)
|
29
|
+
sta ENABL ; Turn off ball, missiles and players
|
30
|
+
sta ENAM0
|
31
|
+
sta ENAM1
|
32
|
+
sta GRP0
|
33
|
+
sta GRP1
|
34
|
+
sta COLUBK ; Background color (black)
|
35
|
+
sta PF0 ; PF0 and PF2 will be "off" (we'll focus on PF1)...
|
36
|
+
sta PF2
|
37
|
+
lda #$FF ; Playfield collor (yellow-ish)
|
38
|
+
sta COLUPF
|
39
|
+
lda #$00 ; Ensure we will duplicate (and not reflect) PF
|
40
|
+
sta CTRLPF
|
41
|
+
ldx #0 ; X will count visible scanlines, let's reset it
|
42
|
+
REPEAT 37 ; Wait until this (and the other 36) vertical blank
|
43
|
+
sta WSYNC ; scanlines are finished
|
44
|
+
REPEND
|
45
|
+
lda #0 ; Vertical blank is done, we can "turn on" the beam
|
46
|
+
sta VBLANK
|
47
|
+
|
48
|
+
Scanline:
|
49
|
+
cpx #174 ; "HELLO WORLD" = (11 chars x 8 lines - 1) x 2 scanlines =
|
50
|
+
bcs ScanlineEnd ; 174 (0 to 173). After that, skip drawing code
|
51
|
+
txa ; We want each byte of the hello world phrase on 2 scanlines,
|
52
|
+
lsr ; which means Y (bitmap counter) = X (scanline counter) / 2.
|
53
|
+
tay ; For division by two we use (A-only) right-shift
|
54
|
+
lda Phrase,y ; "Phrase,Y" = mem(Phrase+Y) (Y-th address after Phrase)
|
55
|
+
sta PF1 ; Put the value on PF bits 4-11 (0-3 is PF0, 12-15 is PF2)
|
56
|
+
ScanlineEnd:
|
57
|
+
sta WSYNC ; Wait for scanline end
|
58
|
+
inx ; Increase counter; repeat untill we got all kernel scanlines
|
59
|
+
cpx #191
|
60
|
+
bne Scanline
|
61
|
+
|
62
|
+
Overscan:
|
63
|
+
lda #%01000010 ; "turn off" the beam again...
|
64
|
+
sta VBLANK ;
|
65
|
+
REPEAT 30 ; ...for 30 overscan scanlines...
|
66
|
+
sta WSYNC
|
67
|
+
REPEND
|
68
|
+
jmp StartFrame ; ...and start it over!
|
69
|
+
|
70
|
+
Phrase:
|
71
|
+
.BYTE %00000000 ; H
|
72
|
+
.BYTE %01000010
|
73
|
+
.BYTE %01111110
|
74
|
+
.BYTE %01000010
|
75
|
+
.BYTE %01000010
|
76
|
+
.BYTE %01000010
|
77
|
+
.BYTE %00000000
|
78
|
+
.BYTE %00000000 ; E
|
79
|
+
.BYTE %01111110
|
80
|
+
.BYTE %01000000
|
81
|
+
.BYTE %01111100
|
82
|
+
.BYTE %01000000
|
83
|
+
.BYTE %01000000
|
84
|
+
.BYTE %01111110
|
85
|
+
.BYTE %00000000
|
86
|
+
.BYTE %00000000 ; L
|
87
|
+
.BYTE %01000000
|
88
|
+
.BYTE %01000000
|
89
|
+
.BYTE %01000000
|
90
|
+
.BYTE %01000000
|
91
|
+
.BYTE %01000000
|
92
|
+
.BYTE %01111110
|
93
|
+
.BYTE %00000000
|
94
|
+
.BYTE %00000000 ; L
|
95
|
+
.BYTE %01000000
|
96
|
+
.BYTE %01000000
|
97
|
+
.BYTE %01000000
|
98
|
+
.BYTE %01000000
|
99
|
+
.BYTE %01000000
|
100
|
+
.BYTE %01111110
|
101
|
+
.BYTE %00000000 ; O
|
102
|
+
.BYTE %00000000
|
103
|
+
.BYTE %00111100
|
104
|
+
.BYTE %01000010
|
105
|
+
.BYTE %01000010
|
106
|
+
.BYTE %01000010
|
107
|
+
.BYTE %01000010
|
108
|
+
.BYTE %00111100
|
109
|
+
.BYTE %00000000
|
110
|
+
.BYTE %00000000 ; white space
|
111
|
+
.BYTE %00000000
|
112
|
+
.BYTE %00000000
|
113
|
+
.BYTE %00000000
|
114
|
+
.BYTE %00000000
|
115
|
+
.BYTE %00000000
|
116
|
+
.BYTE %00000000
|
117
|
+
.BYTE %00000000
|
118
|
+
.BYTE %00000000 ; W
|
119
|
+
.BYTE %01000010
|
120
|
+
.BYTE %01000010
|
121
|
+
.BYTE %01000010
|
122
|
+
.BYTE %01000010
|
123
|
+
.BYTE %01011010
|
124
|
+
.BYTE %00100100
|
125
|
+
.BYTE %00000000
|
126
|
+
.BYTE %00000000 ; O
|
127
|
+
.BYTE %00111100
|
128
|
+
.BYTE %01000010
|
129
|
+
.BYTE %01000010
|
130
|
+
.BYTE %01000010
|
131
|
+
.BYTE %01000010
|
132
|
+
.BYTE %00111100
|
133
|
+
.BYTE %00000000
|
134
|
+
.BYTE %00000000 ; R
|
135
|
+
.BYTE %01111100
|
136
|
+
.BYTE %01000010
|
137
|
+
.BYTE %01000010
|
138
|
+
.BYTE %01111100
|
139
|
+
.BYTE %01000100
|
140
|
+
.BYTE %01000010
|
141
|
+
.BYTE %00000000
|
142
|
+
.BYTE %00000000 ; L
|
143
|
+
.BYTE %01000000
|
144
|
+
.BYTE %01000000
|
145
|
+
.BYTE %01000000
|
146
|
+
.BYTE %01000000
|
147
|
+
.BYTE %01000000
|
148
|
+
.BYTE %01111110
|
149
|
+
.BYTE %00000000
|
150
|
+
.BYTE %00000000 ; D
|
151
|
+
.BYTE %01111000
|
152
|
+
.BYTE %01000100
|
153
|
+
.BYTE %01000010
|
154
|
+
.BYTE %01000010
|
155
|
+
.BYTE %01000100
|
156
|
+
.BYTE %01111000
|
157
|
+
.BYTE %00000000 ; Last byte written to PF1 (important, ensures lower tip
|
158
|
+
; of letter "D" won't "bleeed")
|
159
|
+
|
160
|
+
ORG $FFFA ; Cart config (so 6502 can start it up)
|
161
|
+
|
162
|
+
.WORD StartFrame ; NMI
|
163
|
+
.WORD StartFrame ; RESET
|
164
|
+
.WORD StartFrame ; IRQ
|
165
|
+
|
166
|
+
END
|
167
|
+
|
168
|
+
;
|
169
|
+
; Copyright 2011-2013 Carlos Duarte do Nascimento (Chester). All rights reserved.
|
170
|
+
;
|
171
|
+
; Redistribution and use in source and binary forms, with or without modification, are
|
172
|
+
; permitted provided that the following conditions are met:
|
173
|
+
;
|
174
|
+
; 1. Redistributions of source code must retain the above copyright notice, this list of
|
175
|
+
; conditions and the following disclaimer.
|
176
|
+
;
|
177
|
+
; 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
178
|
+
; of conditions and the following disclaimer in the documentation and/or other materials
|
179
|
+
; provided with the distribution.
|
180
|
+
;
|
181
|
+
; THIS SOFTWARE IS PROVIDED BY CHESTER ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
182
|
+
; WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
183
|
+
; FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
|
184
|
+
; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
185
|
+
; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
186
|
+
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
187
|
+
; ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
188
|
+
; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
189
|
+
; ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
190
|
+
;
|
191
|
+
; The views and conclusions contained in the software and documentation are those of the
|
192
|
+
; authors and should not be interpreted as representing official policies, either expressed
|
193
|
+
; or implied, of Chester.
|
194
|
+
;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
format MZ
|
2
|
+
|
3
|
+
entry .code: start
|
4
|
+
|
5
|
+
segment .code
|
6
|
+
start:
|
7
|
+
mov ax, .data ; put data segment into ax
|
8
|
+
mov ds, ax ; there, I setup the DS for you
|
9
|
+
mov dx, msg ; now I give you the offset in DX. DS:DX now completed.
|
10
|
+
mov ah, 9h
|
11
|
+
int 21h
|
12
|
+
mov ah, 4ch
|
13
|
+
int 21h
|
14
|
+
|
15
|
+
segment .data
|
16
|
+
msg db 'Hello World', '$'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
LA 1,MSGAREA Point Register 1 to message area
|
2
|
+
SVC 35 Invoke SVC 35 (Write to Operator)
|
3
|
+
BR 14 Return
|
4
|
+
MSGAREA EQU * Message Area
|
5
|
+
DC AL2(19) Total area length = 19 (Prefix length:4 + Data Length:15)
|
6
|
+
DC XL2'00' 2 bytes binary of zeros
|
7
|
+
DC C'Hello world!' Text to be written to system console
|
8
|
+
END
|
@@ -0,0 +1,24 @@
|
|
1
|
+
; hello_world.asm intel
|
2
|
+
|
3
|
+
.model small
|
4
|
+
|
5
|
+
.stack 100h
|
6
|
+
|
7
|
+
.data
|
8
|
+
msg db "Hello World!",'$'
|
9
|
+
|
10
|
+
.code
|
11
|
+
main proc
|
12
|
+
mov ax,@data
|
13
|
+
mov ds, ax
|
14
|
+
|
15
|
+
; hello-world is there
|
16
|
+
mov dx,offset msg
|
17
|
+
mov ah,09
|
18
|
+
int 21h
|
19
|
+
|
20
|
+
mov ax,4c00h
|
21
|
+
int 21h
|
22
|
+
|
23
|
+
main endp
|
24
|
+
end main
|
@@ -0,0 +1,33 @@
|
|
1
|
+
; "Hello World" in Motorola 68000 machine language, for AmigaOS
|
2
|
+
|
3
|
+
ExecBase = 4
|
4
|
+
OpenLibrary = -552
|
5
|
+
CloseLibrary = -414
|
6
|
+
PutStr = -948
|
7
|
+
|
8
|
+
section "main", code
|
9
|
+
|
10
|
+
; open "dos.library"
|
11
|
+
|
12
|
+
move.l ExecBase, a6
|
13
|
+
lea lib, a1
|
14
|
+
moveq #0, d0
|
15
|
+
jsr (OpenLibrary, a6)
|
16
|
+
move.l d0, a6
|
17
|
+
|
18
|
+
; print the message
|
19
|
+
|
20
|
+
move.l #msg, d1
|
21
|
+
jsr (PutStr, a6)
|
22
|
+
|
23
|
+
; close the library, and exit with code 0
|
24
|
+
|
25
|
+
move.l a6, a1
|
26
|
+
move.l ExecBase, a6
|
27
|
+
jsr (CloseLibrary, a6)
|
28
|
+
|
29
|
+
moveq #0, d0
|
30
|
+
rts
|
31
|
+
|
32
|
+
lib dc.b "dos.library", 0
|
33
|
+
msg dc.b "Hello World!\n", 0
|
@@ -0,0 +1,35 @@
|
|
1
|
+
; ---------------------------------------------
|
2
|
+
; Hello World for Win32 Intel x86 Assembly
|
3
|
+
;
|
4
|
+
; by fruel (https://github.com/fruel)
|
5
|
+
; 13 June 2016
|
6
|
+
; ---------------------------------------------
|
7
|
+
|
8
|
+
.386
|
9
|
+
.model flat,stdcall
|
10
|
+
.stack 4096
|
11
|
+
|
12
|
+
EXTRN ExitProcess@4 : PROC
|
13
|
+
EXTRN GetStdHandle@4 : PROC
|
14
|
+
EXTRN WriteConsoleA@20 : PROC
|
15
|
+
|
16
|
+
.data
|
17
|
+
msg BYTE "Hello World!",0
|
18
|
+
bytesWritten DWORD ?
|
19
|
+
|
20
|
+
.code
|
21
|
+
main PROC
|
22
|
+
push -11 ; nStdHandle (STD_OUTPUT_HANDLE)
|
23
|
+
call GetStdHandle@4
|
24
|
+
|
25
|
+
push 0 ; lpReserved
|
26
|
+
push OFFSET bytesWritten ; lpNumberOfCharsWritten
|
27
|
+
push LENGTHOF msg - 1 ; nNumberOfCharsToWrite
|
28
|
+
push OFFSET msg ; *lpBuffer
|
29
|
+
push eax ; hConsoleOutput
|
30
|
+
call WriteConsoleA@20
|
31
|
+
|
32
|
+
push 0 ; uExitCode
|
33
|
+
call ExitProcess@4
|
34
|
+
main ENDP
|
35
|
+
END main
|
@@ -0,0 +1,33 @@
|
|
1
|
+
; ---------------------------------------------
|
2
|
+
; Hello World for Win64 Intel x64 Assembly
|
3
|
+
;
|
4
|
+
; by fruel (https://github.com/fruel)
|
5
|
+
; 13 June 2016
|
6
|
+
; ---------------------------------------------
|
7
|
+
|
8
|
+
GetStdHandle PROTO
|
9
|
+
ExitProcess PROTO
|
10
|
+
WriteConsoleA PROTO
|
11
|
+
|
12
|
+
.data
|
13
|
+
msg BYTE "Hello World!",0
|
14
|
+
bytesWritten DWORD ?
|
15
|
+
|
16
|
+
.code
|
17
|
+
main PROC
|
18
|
+
sub rsp, 5 * 8 ; reserve shadow space
|
19
|
+
|
20
|
+
mov rcx, -11 ; nStdHandle (STD_OUTPUT_HANDLE)
|
21
|
+
call GetStdHandle
|
22
|
+
|
23
|
+
mov rcx, rax ; hConsoleOutput
|
24
|
+
lea rdx, msg ; *lpBuffer
|
25
|
+
mov r8, LENGTHOF msg - 1 ; nNumberOfCharsToWrite
|
26
|
+
lea r9, bytesWritten ; lpNumberOfCharsWritten
|
27
|
+
mov QWORD PTR [rsp + 4 * SIZEOF QWORD], 0 ; lpReserved
|
28
|
+
call WriteConsoleA
|
29
|
+
|
30
|
+
mov rcx, 0 ; uExitCode
|
31
|
+
call ExitProcess
|
32
|
+
main ENDP
|
33
|
+
END
|
@@ -0,0 +1,31 @@
|
|
1
|
+
section .text
|
2
|
+
global _start ;must be declared for linker (ld)
|
3
|
+
|
4
|
+
_syscall:
|
5
|
+
int 0x80 ;system call
|
6
|
+
ret
|
7
|
+
|
8
|
+
_start: ;tell linker entry point
|
9
|
+
|
10
|
+
push dword len ;message length
|
11
|
+
push dword msg ;message to write
|
12
|
+
push dword 1 ;file descriptor (stdout)
|
13
|
+
mov eax,0x4 ;system call number (sys_write)
|
14
|
+
call _syscall ;call kernel
|
15
|
+
|
16
|
+
;the alternate way to call kernel:
|
17
|
+
;push eax
|
18
|
+
;call 7:0
|
19
|
+
|
20
|
+
add esp,12 ;clean stack (3 arguments * 4)
|
21
|
+
|
22
|
+
push dword 0 ;exit code
|
23
|
+
mov eax,0x1 ;system call number (sys_exit)
|
24
|
+
call _syscall ;call kernel
|
25
|
+
|
26
|
+
;we do not return from sys_exit,
|
27
|
+
;there's no need to clean stack
|
28
|
+
section .data
|
29
|
+
|
30
|
+
msg db "Hello, world!",0xa ;our string
|
31
|
+
len equ $ - msg ;length of our string
|
@@ -0,0 +1,20 @@
|
|
1
|
+
section .text
|
2
|
+
global _start ;must be declared for linker (ld)
|
3
|
+
|
4
|
+
_start: ;tell linker entry point
|
5
|
+
|
6
|
+
xor ebx,ebx ;ebx=0
|
7
|
+
mov ecx,msg ;address of message to write
|
8
|
+
lea edx,[ebx+len] ;message length
|
9
|
+
lea eax,[ebx+4] ;system call number (sys_write)
|
10
|
+
inc ebx ;file descriptor (stdout)
|
11
|
+
int 0x80 ;call kernel
|
12
|
+
|
13
|
+
xor eax, eax ;set eax=0
|
14
|
+
inc eax ;system call number (sys_exit)
|
15
|
+
int 0x80 ;call kernel
|
16
|
+
|
17
|
+
section .rodata
|
18
|
+
|
19
|
+
msg db 'Hello, world!',0xa ;our string
|
20
|
+
len equ $ - msg ;length of our string
|
@@ -0,0 +1,20 @@
|
|
1
|
+
section .text
|
2
|
+
global _start ;must be declared for linker (ld)
|
3
|
+
|
4
|
+
_start: ;tell linker entry point
|
5
|
+
|
6
|
+
xor eax,eax ;eax:=0
|
7
|
+
lea edx,[rax+len] ;message length
|
8
|
+
mov al,1 ;system call number (sys_write)
|
9
|
+
mov esi,msg ;message to write
|
10
|
+
mov edi,eax ;file descriptor (stdout)
|
11
|
+
syscall ;call kernel
|
12
|
+
|
13
|
+
xor edi, edi ;return 0 (EXIT_SUCCESS)
|
14
|
+
lea eax,[rdi+60] ;system call number (sys_exit)
|
15
|
+
syscall ;call kernel
|
16
|
+
|
17
|
+
section .rodata
|
18
|
+
|
19
|
+
msg db 'Hello, world!',0xa ;our string
|
20
|
+
len equ $ - msg ;length of our string
|
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
* Hello World for TI-99/4a computer with TMS9900 CPU
|
3
|
+
* by Frog ( http://frog.enlight.ru )
|
4
|
+
* 15 April 2016
|
5
|
+
*
|
6
|
+
****************************************************************************
|
7
|
+
|
8
|
+
DEF START
|
9
|
+
|
10
|
+
WRKSP EQU >8300
|
11
|
+
|
12
|
+
VDPWD EQU >8C00 * VDP RAM write data
|
13
|
+
VDPWA EQU >8C02 * VDP RAM read/write address
|
14
|
+
|
15
|
+
|
16
|
+
START LIMI 0 * disable interrupts
|
17
|
+
LWPI WRKSP * set default workspace
|
18
|
+
|
19
|
+
* set VDP RAM start address (low and high byte)
|
20
|
+
|
21
|
+
LI R0,>0000
|
22
|
+
ORI R0,>4000
|
23
|
+
SWPB R0
|
24
|
+
MOVB R0,@VDPWA
|
25
|
+
SWPB R0
|
26
|
+
MOVB R0,@VDPWA
|
27
|
+
|
28
|
+
LI R1,HELLOWORLD * ascii string address
|
29
|
+
LI R2,12 * total chars
|
30
|
+
|
31
|
+
NEXTCHAR
|
32
|
+
MOVB *R1+,@VDPWD * put next char on screen
|
33
|
+
DEC R2
|
34
|
+
JNE NEXTCHAR
|
35
|
+
|
36
|
+
LOOPBACK
|
37
|
+
JMP LOOPBACK * stop and do nothing
|
38
|
+
|
39
|
+
|
40
|
+
HELLOWORLD
|
41
|
+
TEXT 'HELLO WORLD!' * string data
|
42
|
+
BYTE 0
|
43
|
+
|
44
|
+
END
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#include "kernel.inc"
|
2
|
+
.db "KEXC"
|
3
|
+
.db KEXC_ENTRY_POINT
|
4
|
+
.dw start
|
5
|
+
start:
|
6
|
+
pcall(getLcdLock)
|
7
|
+
|
8
|
+
pcall(allocScreenBuffer)
|
9
|
+
pcall(clearScreen)
|
10
|
+
|
11
|
+
kld(hl, message)
|
12
|
+
ld de, 0
|
13
|
+
pcall(drawStr)
|
14
|
+
|
15
|
+
jr $ ; Loop forever
|
16
|
+
|
17
|
+
message:
|
18
|
+
.db "Hello world!", 0
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.NOLIST
|
2
|
+
#define EQU .equ
|
3
|
+
#define equ .equ
|
4
|
+
#define END .end
|
5
|
+
#define end .end
|
6
|
+
#include "ti83plus.inc"
|
7
|
+
.LIST
|
8
|
+
.org 9D93h
|
9
|
+
.db $BB,$6D
|
10
|
+
ld a,0
|
11
|
+
ld (CURCOL),a
|
12
|
+
ld (CURROW),a
|
13
|
+
ld hl,text
|
14
|
+
B_CALL(_PutS)
|
15
|
+
B_CALL(_NewLine)
|
16
|
+
ret
|
17
|
+
text:
|
18
|
+
.db "Hello, World",0
|
19
|
+
.end
|
20
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
MsgBox, Hello World!
|
@@ -0,0 +1 @@
|
|
1
|
+
MsgBox(0, "Message Box", "Hello World!")
|
data/bin/languages/b/B.b
ADDED