2012-03-28 16:32:49 +00:00
|
|
|
class Dasm < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Macro assembler with support for several 8-bit microprocessors"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://dasm-dillon.sourceforge.net"
|
|
|
|
url "https://downloads.sourceforge.net/project/dasm-dillon/dasm-dillon/2.20.11/dasm-2.20.11-2014.03.04-source.tar.gz"
|
|
|
|
sha256 "a9330adae534aeffbfdb8b3ba838322b92e1e0bb24f24f05b0ffb0a656312f36"
|
|
|
|
head "svn://svn.code.sf.net/p/dasm-dillon/code/trunk"
|
2012-03-28 16:32:49 +00:00
|
|
|
|
2014-06-14 10:39:56 +00:00
|
|
|
bottle do
|
2016-04-10 13:37:02 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 1
|
|
|
|
sha256 "854a19f232cffdeabb1cb2afef4a5713e55b545519beea8f666f2cc4882d42e6" => :el_capitan
|
|
|
|
sha256 "1897ee7e4d76eeb74bd6aa3c94d73f14f55c44054dd296bbd724addb3ca3b00a" => :yosemite
|
|
|
|
sha256 "3383c91ce64d715a05595e49d38d16ea134e139dc7b87541d8c81bf5a9aeaf15" => :mavericks
|
2014-06-14 10:39:56 +00:00
|
|
|
end
|
|
|
|
|
2012-03-28 16:32:49 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
2015-08-03 12:55:31 +00:00
|
|
|
prefix.install "bin", "doc"
|
2012-03-28 16:32:49 +00:00
|
|
|
end
|
2014-02-03 17:46:14 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/"a.asm"
|
|
|
|
path.write <<-EOS
|
|
|
|
processor 6502
|
|
|
|
org $c000
|
|
|
|
jmp $fce2
|
|
|
|
EOS
|
|
|
|
|
|
|
|
system bin/"dasm", path
|
2014-05-04 19:12:41 +00:00
|
|
|
code = (testpath/"a.out").binread.unpack("C*")
|
2014-02-03 17:46:14 +00:00
|
|
|
assert_equal [0x00, 0xc0, 0x4c, 0xe2, 0xfc], code
|
|
|
|
end
|
2012-03-28 16:32:49 +00:00
|
|
|
end
|