swh:1:snp:63e2d142f91fc04ec33789d9d7bb85f3bef72e05
Raw File
Tip revision: 2147eebfe505d120b70666dc73e83b1ce9d700d5 authored by rburkey2005 on 08 November 2016, 16:11:32 UTC
Update README.md
Tip revision: 2147eeb
SmallyBZFCHK.agc
# Copyright 2004 Ronald S. Burkey <info@sandroid.org>
#  
# This file is part of yaAGC. 
#
# yaAGC is free software; 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 2 of the License, or
# (at your option) any later version.
#
# yaAGC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with yaAGC; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# Filename:	SmallyBZFCHK.agc
# Purpose:	This is code written from the flowchart on p. 38 of
#		E-2065, which is a document titled "Block II AGC
#		Self-Check and Show-Banksum", by Edwin D. Smally.
# Mod history:	07/07/04 RSB.	Began.
#		07/08/04 RSB.	Finished.
#
# Similar code was apparently originally in Luminary and/or Colossus,
# but much of it was removed over the course of time to make more room.  
# I don't know what the original code was like, but the flowcharts still
# exist, so I've rewritten the code from the flowcharts. 

		# P. 38 of Smally.
		
		INCR	ERRSUB		# 23
		CA	TWO
		EXTEND
		BZF	BZFERROR
		
		INCR	ERRSUB		# 24
		CA	NEGTHREE
		EXTEND
		BZF	BZFERROR
		
		INCR	ERRSUB		# 25
		CA	MAXP
		INCR	A
		EXTEND
		BZF	BZFERROR
		
		INCR	ERRSUB		# 26
		CA	MAXN
		AD	NEGONE
		EXTEND
		BZF	BZFERROR
		
		INCR	ERRSUB		# 27
		CA	ZEROES
		EXTEND
		BZF	+2
		TCF	BZFERROR
		
		INCR	ERRSUB		# 30 octal
		CA	NEGZERO
		EXTEND
		BZF	+2
		TCF	BZFERROR
		
		TCF	+2
BZFERROR	TC	ERRORDSP

back to top