the-automatic-proofreader-d.../data2.rb

30 lines
717 B
Ruby
Raw Normal View History

2021-12-30 21:30:54 +00:00
#!/usr/bin/env ruby
# the original one
DATA = [
169, 75, 141, 36, 3, 169, 3, 141,
37, 3, 169, 0, 133, 255, 96, 32,
14, 242, 133, 252, 134, 253, 132, 254,
8, 201, 13, 240, 17, 201, 32, 240,
5, 24, 101, 255, 133, 255, 165, 252,
166, 253, 164, 254, 40, 96, 169, 13,
32, 210, 255, 165, 214, 141, 165, 3,
206, 165, 3, 169, 0, 133, 216, 169,
19, 32, 210, 255, 169, 18, 32, 210,
255, 169, 58, 32, 210, 255, 166, 255,
169, 0, 32, 205, 221, 169, 0, 133,
255, 169, 32, 210, 255, 32, 210,
255, 173, 165, 3, 133, 214, 76, 98, 3
]
File.open('ap_orig_6502.prg', 'w') do |fh|
#fh.print (LOCATION & 0x255).chr
#fh.print ((LOCATION >> 8) & 0x255).chr
DATA.each do |i|
fh.print i.chr
end
end