# Copyright (C) 2011 by Jonathan Appavoo, Boston University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. all: counter.img memcpy.img concpy.img interrupt.img unknown.img adc-sbc-test.img make -C cc .PHONY: all memcpy.img: memcpy.s ./p65 -b $< $@ | sed 's/-/ /g' > memcpy.txt ../img resetvec $@ 0x0200 counter.img: counter.s ./p65 -b $< $@ | sed 's/-/ /g' > counter.txt concpy.img: concpy.s ./p65 -b $< $@ | sed 's/-/ /g' > concpy.txt ../img resetvec $@ 0x0200 nop.img: bash -c 'for (( i=o; i<65536; i++)); do echo -n ea; done | ../img load nop.img' # ../img resetvec $@ 0x0200 interrupt.img: interrupt.s ./p65 -b $< $@ | sed 's/-/ /g' > interrupt.txt ../img resetvec $@ 0x0200 ../img nmivec $@ 0x0500 ../img irqvec $@ 0x0600 unknown.img: unknown.s ./p65 -b $< $@ | sed 's/-/ /g' > unknown.txt ../img resetvec $@ 0x1000 adc-sbc-test.img: adc-sbc-test.s ./p65 -b $< $@ | sed 's/-/ /g' > adc-sbc-test.txt ../img resetvec $@ 0x0200 clean: make -C cc clean -rm -rf $(wildcard *.img *.txt *.oimg *.dumpmake) distclean: clean make -C cc distclean