Mercurial > hg > Members > kono > nitros9-code
changeset 2378:2f771d5be5d3
Added thesis test programs
author | boisy |
---|---|
date | Thu, 21 Jan 2010 22:05:34 +0000 |
parents | daebc84c2a6e |
children | 520fee257cac |
files | 3rdparty/customboots/boisy/makefile 3rdparty/customboots/boisy/testadd.asm 3rdparty/customboots/boisy/testcwai.asm 3rdparty/customboots/boisy/testexg.asm 3rdparty/customboots/boisy/testmul.asm 3rdparty/customboots/boisy/testtfr.asm |
diffstat | 6 files changed, 540 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/3rdparty/customboots/boisy/makefile Thu Jan 21 19:47:58 2010 +0000 +++ b/3rdparty/customboots/boisy/makefile Thu Jan 21 22:05:34 2010 +0000 @@ -34,7 +34,7 @@ CMDS_DW = $(3PDW63)/inetd $(3PDW63)/dw \ $(3PDW63)/telnet $(3PBOISY)/send -CMDS_THESIS = testmul +CMDS_THESIS = testmul testtfr testexg testadd testcwai # We make our own bootfile and kernel track KERNEL = $(MD)/rel_80 $(MD)/boot_dw3 $(MD)/krn @@ -44,6 +44,7 @@ $(MD)/rammer.dr $(MD)/r0_128k.dd \ $(MD)/ddx0.dd $(MD)/x1.dd $(MD)/x2.dd $(MD)/x3.dd \ $(MD)/scf.mn \ + $(MD)/sc6551.dr $(MD)/t2_sc6551.dd $(MD)/t3_sc6551.dd \ $(MD)/scdwn.dr $(MD)/term_scdwn.dt \ $(MD)/n1_scdwn.dd $(MD)/n2_scdwn.dd $(MD)/n3_scdwn.dd \ $(MD)/n4_scdwn.dd $(MD)/n5_scdwn.dd $(MD)/n6_scdwn.dd \ @@ -71,7 +72,7 @@ cd $(3PBOISY); make clean: dskclean - rm $(CMDS_THESIS) + -$(RM) $(CMDS_THESIS) dsk: all $(DSKS) @@ -99,7 +100,7 @@ $(CP) $(DSKS) $(DSKDIR) dskclean: - $(RM) $(DSKS) + -$(RM) $(DSKS) info: @$(ECHO) "*** NitrOS-9/6309 Level 2 DriveWire Server ***"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/customboots/boisy/testadd.asm Thu Jan 21 22:05:34 2010 +0000 @@ -0,0 +1,135 @@ + ifp1 + use os9defs + endc + +tylg set Prgrm+Objct +atrv set ReEnt+rev +rev set $00 +edition set 1 + + mod eom,name,tylg,atrv,start,size + +stack rmb 200 +size equ . + +name fcs /testmul/ + fcb edition + +start + orcc #IntMasks + +* set up appropriate registers for test + lda #0 + +VAL equ 1 + +top +* 100 instructions in series + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + adda #VAL + lbra top + + clrb + os9 F$Exit + + emod +eom equ * + end
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/customboots/boisy/testcwai.asm Thu Jan 21 22:05:34 2010 +0000 @@ -0,0 +1,26 @@ + ifp1 + use os9defs + endc + +tylg set Prgrm+Objct +atrv set ReEnt+rev +rev set $00 +edition set 1 + + mod eom,name,tylg,atrv,start,size + +stack rmb 200 +size equ . + +name fcs /testmul/ + fcb edition + +start + cwai #^IntMasks + + clrb + os9 F$Exit + + emod +eom equ * + end
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/customboots/boisy/testexg.asm Thu Jan 21 22:05:34 2010 +0000 @@ -0,0 +1,140 @@ + ifp1 + use os9defs + endc + +tylg set Prgrm+Objct +atrv set ReEnt+rev +rev set $00 +edition set 1 + + mod eom,name,tylg,atrv,start,size + +stack rmb 200 +size equ . + +name fcs /testmul/ + fcb edition + +start + orcc #IntMasks + +* set up appropriate registers for test + +* measure mul multiplying 0 + lda #0 + ldb #0 + +* measure mul multiplying alternating bit patterns +* lda #%01010101 +* ldb #%10101010 + +top +* 100 instructions in series + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + exg a,b + lbra top + + clrb + os9 F$Exit + + emod +eom equ * + end
--- a/3rdparty/customboots/boisy/testmul.asm Thu Jan 21 19:47:58 2010 +0000 +++ b/3rdparty/customboots/boisy/testmul.asm Thu Jan 21 22:05:34 2010 +0000 @@ -17,9 +17,99 @@ start orcc #IntMasks - clra - clrb + +* set up appropriate registers for test + +* measure mul multiplying 0 + lda #0 + ldb #0 + +* measure mul multiplying alternating bit patterns +* lda #%01010101 +* ldb #%10101010 + top +* 100 instructions in series + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul + mul mul mul mul @@ -42,6 +132,9 @@ mul bra top + clrb + os9 F$Exit + emod eom equ * end
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/customboots/boisy/testtfr.asm Thu Jan 21 22:05:34 2010 +0000 @@ -0,0 +1,140 @@ + ifp1 + use os9defs + endc + +tylg set Prgrm+Objct +atrv set ReEnt+rev +rev set $00 +edition set 1 + + mod eom,name,tylg,atrv,start,size + +stack rmb 200 +size equ . + +name fcs /testmul/ + fcb edition + +start + orcc #IntMasks + +* set up appropriate registers for test + +* measure mul multiplying 0 + lda #0 + ldb #0 + +* measure mul multiplying alternating bit patterns +* lda #%01010101 +* ldb #%10101010 + +top +* 100 instructions in series + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + tfr a,b + lbra top + + clrb + os9 F$Exit + + emod +eom equ * + end