please dont rip this site

Scenix Seven_seg

; ******************************************************************************
;       Binary to Seven-Segment display routine
;       Author:Zafar Ullah
;       Written: 98/7/30
;
;******************************************************************************
;
;****** Assembler directives
;
; uses: SX28AC, 2 pages of program memory, 8 banks of RAM, high speed osc.
;       operating in turbo mode, with 8-level stack & extended option reg.
;                
		DEVICE  pins28,pages2,banks8,oschs
		DEVICE  turbo,stackx,optionx
		ID      'Seven-Se'			;program ID label
		RESET   reset_entry             ;set reset/boot address

		FREQ	50000000
;
;
;
;
		ORG     100h
;
; Program execution begins here on power-up or after a reset
;
reset_entry
	
	 MOV	M, #$0F            ;set the mode registar.
	 MOV	!RB, #$FF		 ; Set Port B as Input
	 MOV	!RC, #$00		 ; Set the port C as Output
	 
:LOOP
	 MOV	W, RB			; Read Port B
	 AND	W, #$0F		; Masking significant bits
	 CALL  CHECK_TABLE	; Go to look up table
	 MOV	RC, W			; Output the value to port C
	 NOP
	 NOP
	 JMP :LOOP

	ORG	10h

CHECK_TABLE        JMP	PC+W	; Look up table 	
	RETW 	$40,$F9,$24,$30,$19,$12,$02,$78,$00,$18,$08,$03,$46,$21,$06,$0E



file: /Techref/scenix/seven_seg.src, 1KB, , updated: 1999/6/14 10:19, local time: 2017/12/17 21:02,
TOP NEW HELP FIND: 
54.227.51.103:LOG IN

 ©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/scenix/seven_seg.src"> scenix seven_seg</A>

Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171217 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .