#########################################################
# file name : user_echo_script.txt #
# description : PennSim script file to automate #
# assembling, loading, reset, and PC set #
Copyright By PowCoder代写 加微信 powcoder
#########################################################
# clear the PennSim screen
# reset PennSim Simulator (clears all memory/regs)
# assemble os.asm file into os.obj file
# assemble user_echo.asm file into user_echo.obj file
as user_echo user_echo
# load os.obj into OS program memory
# load user_echo.obj into USER program memory
ld user_echo
# we will not need to set PC to 0, instead PC=8200
# will be fine (that’s default) as that is where
# os.obj will be loaded
# set PC 0
# once the PC = this label, it will stop the LC4
break set END
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com