-/* asout.c */
+/* asout.c
+
+ Copyright (C) 1989-1995 Alan R. Baldwin
+ 721 Berkeley St., Kent, Ohio 44240
+
+This program 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 3, 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
+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 this program. If not, see <http://www.gnu.org/licenses/>. */
/*
- * (C) Copyright 1989-1995
- * All Rights Reserved
- *
- * Alan R. Baldwin
- * 721 Berkeley St.
- * Kent, Ohio 44240
- *
* 28-Oct-97 JLH:
* - outsym: show s_id as string rather than array [NCPS]
* - Added outr11 to support 8051's 11 bit destination address
*/
VOID
-outab(b)
+outab(int b)
{
if (pass == 2) {
out_lb(b,0);
*/
VOID
-outaw(w)
+outaw(int w)
{
if (pass == 2) {
out_lw(w,0);
*/
VOID
-outdp(carea, esp)
-register struct area *carea;
-register struct expr *esp;
+outdp(register struct area *carea, register struct expr *esp)
{
register int n, r;
*/
VOID
-outall()
+outall(void)
{
if (oflag && pass==2)
outbuf("R");
*/
VOID
-outdot()
+outdot(void)
{
if (oflag && pass==2) {
fprintf(ofp, "T");
*/
VOID
-outchk(nt, nr)
+outchk(int nt, int nr)
{
register struct area *ap;
*/
VOID
-outbuf(s)
-char *s;
+outbuf(char *s)
{
if (txtp > &txt[2]) {
fprintf(ofp, "T");
*/
VOID
-outgsd()
+outgsd(void)
{
register struct area *ap;
register struct sym *sp;
*/
VOID
-outarea(ap)
-register struct area *ap;
+outarea(register struct area *ap)
{
register char *ptr;
register int c;
*/
VOID
-outsym(sp)
-register struct sym *sp;
+outsym(register struct sym *sp)
{
register char *ptr;
*/
VOID
-out_lb(b,t)
-register int b,t;
+out_lb(register int b, register int t)
{
if (cp < &cb[NCODE]) {
*cp++ = b;
*/
VOID
-out_lw(n,t)
-register int n,t;
+out_lw(register int n, register int t)
{
if (hilo) {
out_lb(hibyte(n),t ? t|R_HIGH : 0);
*/
VOID
-out_rw(n)
-register int n;
+out_rw(register int n)
{
if (hilo) {
*relp++ = hibyte(n);
*/
VOID
-out_tw(n)
-register int n;
+out_tw(register int n)
{
if (hilo) {
*txtp++ = hibyte(n);
*/
int
-lobyte(n)
+lobyte(int n)
{
return (n&0377);
}
*/
int
-hibyte(n)
+hibyte(int n)
{
return ((n>>8)&0377);
}