tass64 1.53.1515 (new formula)

Closes #35259.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Richard Halkyard 2018-12-19 10:55:23 -06:00 committed by FX Coudert
parent 3ae7e2da47
commit 9b804a2a9d
2 changed files with 36 additions and 0 deletions

1
Aliases/64tass Symbolic link
View file

@ -0,0 +1 @@
../Formula/tass64.rb

35
Formula/tass64.rb Normal file
View file

@ -0,0 +1,35 @@
class Tass64 < Formula
desc "Multi pass optimizing macro assembler for the 65xx series of processors"
homepage "https://tass64.sourceforge.io/"
url "https://downloads.sourceforge.net/project/tass64/source/64tass-1.53.1515-src.zip"
sha256 "f18e5d3f7f27231c1f8ce781eee8b585fe5aaec186eccdbdb820c1b8c323eb6c"
def install
system "make", "install", "CPPFLAGS=-D_XOPEN_SOURCE", "prefix=#{prefix}"
# `make install` does not install syntax highlighting defintions
pkgshare.install "syntax"
end
test do
(testpath/"hello.asm").write <<~'EOS'
;; Simple "Hello World" program for C64
*=$c000
LDY #$00
L0
LDA L1,Y
CMP #0
BEQ L2
JSR $FFD2
INY
JMP L0
L1
.text "HELLO WORLD",0
L2
RTS
EOS
system "#{bin}/64tass", "-a", "hello.asm", "-o", "hello.prg"
assert_predicate testpath/"hello.prg", :exist?
end
end