URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
Subversion Repositories zipcpu
[/] [zipcpu/] [trunk/] [bench/] [asm/] [pcpc.S] - Rev 69
Compare with Previous | Blame | View Log
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Filename: pcpc.S;; Project: Zip CPU -- a small, lightweight, RISC CPU soft core;; Purpose: A quick test of whether or not the busy command works.; The test does not report success or failure, so you will need; to observe it in a simulator to know if it worked or not.;; Creator: Dan Gisselquist, Ph.D.; Gisselquist Technology, LLC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Copyright (C) 2015, Gisselquist Technology, LLC;; This program is free software (firmware): you can redistribute it and/or; modify it under the terms of the GNU General Public License as published; by the Free Software Foundation, either version 3 of the License, or (at; your option) any later version.;; This program is distributed in the hope that it will be useful, but WITHOUT; ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License; for more details.;; License: GPL, v3, as defined and found on www.gnu.org,; http://www.gnu.org/licenses/gpl.html;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;start:LDI $1,R0MOV $1(R0),R1MOV $2(R0),R2MOV $3(R0),R3MOV $4(R0),R4MOV $5(R0),R5MOV $6(R0),R6MOV $7(R0),R7MOV $8(R0),R8MOV $9(R0),R9MOV $10(R0),R10MOV $11(R0),R11MOV $12(R0),R12MOV $13(R0),R13 ; R14 is CC, R15 is PCLDI $0,R0BUSY ; This should create an endless loop here; MOV R0,R0; MOV R0,R0; MOV R0,R0 ; By this point, the loop should've startedLDI $10,R0 ; If we ever get here, we've got problemsADD $1(R0),R1ADD $2(R0),R2ADD $3(R0),R3MOV R0,R0MOV R0,R0 ; If we ever get here, we've got problemsHALT
