Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #3836 > unrolled thread

Max line length of a 6502 source

Started byroger.shimada@gmail.com
First post2017-08-24 20:10 -0700
Last post2017-08-30 02:04 -0500
Articles 20 on this page of 34 — 14 participants

Back to article view | Back to comp.sys.apple2.programmer


Contents

  Max line length of a 6502 source roger.shimada@gmail.com - 2017-08-24 20:10 -0700
    Re: Max line length of a 6502 source mmphosis <mmphosis@macgui.com> - 2017-08-25 19:08 +0000
    Re: Max line length of a 6502 source Michael J. Mahon <mjmahon@aol.com> - 2017-08-25 15:46 -0500
      Re: Max line length of a 6502 source roger.shimada@gmail.com - 2017-08-26 07:48 -0700
      Re: Max line length of a 6502 source Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-08-28 07:35 -0700
    Re: Max line length of a 6502 source Hugh Hood <hughhood@earthlink.net> - 2017-08-26 10:53 -0500
    Re: Max line length of a 6502 source James Davis <JPD.Enterprises@outlook.com> - 2017-08-26 17:08 -0700
      Re: Max line length of a 6502 source Michael Barry <barrym95838@yahoo.com> - 2017-08-26 21:15 -0700
        Re: Max line length of a 6502 source Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2017-08-27 00:48 -0500
          Re: Max line length of a 6502 source Michael J. Mahon <mjmahon@aol.com> - 2017-08-27 01:54 -0500
        Re: Max line length of a 6502 source "James Davis" <JPD.Enterprises@Live.com> - 2017-08-27 08:49 -0700
    Re: Max line length of a 6502 source John Brooks <jbrooks@blueshiftinc.com> - 2017-08-27 12:42 -0700
      Re: Max line length of a 6502 source Hugh Hood <hughhood@earthlink.net> - 2017-08-27 18:45 -0500
        Re: Max line length of a 6502 source John Brooks <jbrooks@blueshiftinc.com> - 2017-08-27 21:30 -0700
          Re: Max line length of a 6502 source Hugh Hood <hughhood@earthlink.net> - 2017-08-28 22:42 -0500
            Re: Max line length of a 6502 source John Brooks <jbrooks@blueshiftinc.com> - 2017-08-28 21:40 -0700
              Re: Max line length of a 6502 source Hugh Hood <hughhood@earthlink.net> - 2017-08-29 00:58 -0500
            Re: Max line length of a 6502 source Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-08-29 09:47 -0700
    Re: Max line length of a 6502 source David Schmenk <dschmenk@gmail.com> - 2017-08-28 10:42 -0700
      Re: Max line length of a 6502 source Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-08-28 11:34 -0700
      Re: Max line length of a 6502 source gids.rs@sasktel.net - 2017-08-28 14:43 -0700
        Re: Max line length of a 6502 source Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-08-29 09:27 -0700
          Re: Max line length of a 6502 source gids.rs@sasktel.net - 2017-08-29 21:15 -0700
            Re: Max line length of a 6502 source Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-08-29 23:45 -0700
            Re: Max line length of a 6502 source Michael J. Mahon <mjmahon@aol.com> - 2017-08-30 02:04 -0500
              Re: Max line length of a 6502 source gids.rs@sasktel.net - 2017-08-30 11:35 -0700
                Re: Max line length of a 6502 source Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-08-30 22:30 -0700
                  Re: Max line length of a 6502 source Michael J. Mahon <mjmahon@aol.com> - 2017-08-31 01:09 -0500
                    Re: Max line length of a 6502 source Andrew Roughan <andrew.roughan@writeme.com> - 2017-09-05 11:08 +0000
                Re: Max line length of a 6502 source Michael J. Mahon <mjmahon@aol.com> - 2017-08-31 01:09 -0500
        Re: Max line length of a 6502 source ewerst@msn.com - 2017-08-29 10:11 -0700
          Re: Max line length of a 6502 source gids.rs@sasktel.net - 2017-08-29 21:20 -0700
            Re: Max line length of a 6502 source Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-08-29 23:18 -0700
            Re: Max line length of a 6502 source Michael J. Mahon <mjmahon@aol.com> - 2017-08-30 02:04 -0500

Page 1 of 2  [1] 2  Next page →


#3836 — Max line length of a 6502 source

Fromroger.shimada@gmail.com
Date2017-08-24 20:10 -0700
SubjectMax line length of a 6502 source
Message-ID<d41a9619-bb97-4728-a5f7-5315518b3ccf@googlegroups.com>
Hi folks,

I'll be posting a 6502 program on comp.sys.apple2 soon. It's under $80 bytes long, so I will include the source in the post.

I use a cross assembler and have a self-imposed line length limit of 79 columns.

If that's too wide, what's the max line length of assemblers that any of you are _currently_ using?

Thanks for your thoughts.

[toc] | [next] | [standalone]


#3837

Frommmphosis <mmphosis@macgui.com>
Date2017-08-25 19:08 +0000
Message-ID<mmphosis-1503688373@macgui.com>
In reply to#3836
Perhaps somewhere over 1023 (or 1038) columns for a non-commented line. 
Commented line lengths may be unlimited.  I see some 1024 and 2048 values
hardcoded in the Merlin32 source code.  The GCC error seems to indicate that
Merlin32 overflows a buffer: 
 https://stackoverflow.com/questions/1345670/stack-smashing-detected#1347464

# ../merlin/Merlin32_v1.0/Source/Merlin32 -V '' t2.s

../merlin/Merlin32_v1.0/Source/Merlin32 v 1.0, (c) Brutal Deluxe 2011-2015
*** stack smashing detected ***: ../merlin/Merlin32_v1.0/Source/Merlin32
terminated
Aborted (core dumped)

#  head -n 3 t2.s | tail -n 1 | wc
      1       2    1039

Of course, files with these line lengths often crash other programs.  And,
they display poorly on email / newgroups.

;
T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890T234567890
ABCDEFGHIJK0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890	EQU
0
	LDA
	#ABCDEFGHIJK0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
	STA $00
	RTS

[toc] | [prev] | [next] | [standalone]


#3838

FromMichael J. Mahon <mjmahon@aol.com>
Date2017-08-25 15:46 -0500
Message-ID<aZGdnYbdZpI_ET3EnZ2dnUU7-I9QAAAA@giganews.com>
In reply to#3836
<roger.shimada@gmail.com> wrote:
> Hi folks,
> 
> I'll be posting a 6502 program on comp.sys.apple2 soon. It's under $80
> bytes long, so I will include the source in the post.
> 
> I use a cross assembler and have a self-imposed line length limit of 79 columns.
> 
> If that's too wide, what's the max line length of assemblers that any of
> you are _currently_ using?
> 
> Thanks for your thoughts.

I've always limited line length to prevent any listing line from
overflowing a single line. Since the listing includes address, emitted
data, line number, and possibly cycle count info, I keep source lines to
around 60 characters or less. 

-- 
-michael - NadaNet 3.1 and AppleCrate II:  http://michaeljmahon.com

[toc] | [prev] | [next] | [standalone]


#3839

Fromroger.shimada@gmail.com
Date2017-08-26 07:48 -0700
Message-ID<2aab2142-4c7d-4762-a47b-fe0e0a7bd840@googlegroups.com>
In reply to#3838
On Friday, August 25, 2017 at 3:46:31 PM UTC-5, mjm...@aol.com wrote:
> ... I keep source lines to around 60 characters or less.

Looks like Bob Sander-Cederlof's annotated AppleSoft is (mainly) 60 columns too. (Lines longer than 60 columns include lowercase - and a URL - so likely added much later.)

I will be adjusting some comments.

Thanks!

[toc] | [prev] | [next] | [standalone]


#3852

FromMichael Pohoreski <michael.pohoreski@gmail.com>
Date2017-08-28 07:35 -0700
Message-ID<bc67fb2d-0632-4ae3-a82d-6cb5a601c907@googlegroups.com>
In reply to#3838
On Friday, August 25, 2017 at 1:46:31 PM UTC-7, mjm...@aol.com wrote:
> data, line number, and possibly cycle count info, I keep source lines to
> around 60 characters or less. 

/sarcasm If only it wasn't 1977 anymore and we had a _super_ high resolution 2560 x 1440 on a 27"+ monitor that could display custom fonts with 132+ characters ... :-)

Michael, I guess you don't spend much time documenting and reconstructing the assembly source of popular titles on a modern computer.

Here is just one example of 95 characters ...

i.e.


        DFB $01                 ; Tell P5 PROM to read only 1 Sector
Boot1:                          ; A=01 X=60 Y=00 P=31 S=F0 Boot Stage #1 Entry Point from $C6F8
        LDA #$60                ; Poke "RTS" @ $0801 so that when we call
        STA Boot1               ; `CallReadSec` it will return to NextSector @ $086F

        LDX #$00                ; Save _absolute_ track the drive head is on
        STX rwts_HalfTrack_Have ; since we can only move _relative_ tracks


Any assembler that doesn't support a minimum of 80 characters / line is "broken" IMO.  

I'm sick and tired of dumb assemblers that only support 8 character symbols -- I use _descriptive_ variable names AND comments because I'm writing code for a PERSON to read not some dumb assembler written by a lazy programmer.

What this means at the end of the day is that ~100 chars/line is pretty easy to hit.

That said, I certainly can appreciate someone trying to keep lines < 72 chars so they can be posted on usenet without wrapping.


[toc] | [prev] | [next] | [standalone]


#3840

FromHugh Hood <hughhood@earthlink.net>
Date2017-08-26 10:53 -0500
Message-ID<kI-dnXo18sAbBDzEnZ2dnUU7-U3NnZ2d@earthlink.com>
In reply to#3836
Roger,

I think 79 columns is just fine, particularly if you will be viewing 
and/or editing the source on a real Apple II.

For example, when using an Apple II, I view and edit Merlin stuff in 
AppleWorks 5.1, and have the TAB stops at 15 (opcode), 22 (operand) and 
39 (comment).

That allows for a 40-character comment, which I like.

These days, though, I primarily write Merlin code on a Mac in BBEdit, 
and use a Merlin language module so that I get syntax coloring, line 
numbering, etc. {FWIW, that module was one I adapted from the great 
65C02 module that Ivan Drucker built).

I set up a drag-and-drop AppleScript and just drop the file to have it 
assembled by Merlin32 (thanks again Antoine and Olivier).

BBEdit won't allow variable TAB stops, but by setting the TAB width to 
15 and making the display wider than 80 columns, I accomplish what I need.

Since I'm using TABs rather than spaces, sending that code back to the 
Apple II works fine since it still fits on an 80-column screen.





Hugh Hood




On 8/24/2017 10:10 PM, roger.shimada@gmail.com wrote:
> Hi folks,
> 
> I'll be posting a 6502 program on comp.sys.apple2 soon. It's under $80 bytes long, so I will include the source in the post.
> 
> I use a cross assembler and have a self-imposed line length limit of 79 columns.
> 
> If that's too wide, what's the max line length of assemblers that any of you are _currently_ using?
> 
> Thanks for your thoughts.
> 

[toc] | [prev] | [next] | [standalone]


#3843

FromJames Davis <JPD.Enterprises@outlook.com>
Date2017-08-26 17:08 -0700
Message-ID<ecfd3480-ee61-4e2a-bcdb-2ad91725adbd@googlegroups.com>
In reply to#3836
On Thursday, August 24, 2017 at 8:10:55 PM UTC-7, roger....@gmail.com wrote:
> Hi folks,
> 
> I'll be posting a 6502 program on comp.sys.apple2 soon. It's under $80 bytes long, so I will include the source in the post.
> 
> I use a cross assembler and have a self-imposed line length limit of 79 columns.
> 
> If that's too wide, what's the max line length of assemblers that any of you are _currently_ using?
> 
> Thanks for your thoughts.

I like to stick with the standards I learned in my Typing class in high school.  It is from the Gregg Typing book.  8"x11" paper, with 1" margins all around, leaves 6.5" line length and 9" of lines top to bottom.  At 10 cpi and 6 lines per inch, that is 65 chars/line and 64 lines per page.  I use Courier New, a monospaced font, too.

[toc] | [prev] | [next] | [standalone]


#3844

FromMichael Barry <barrym95838@yahoo.com>
Date2017-08-26 21:15 -0700
Message-ID<bfddedb2-b623-493d-8d58-d45d1606f635@googlegroups.com>
In reply to#3843
On Saturday, August 26, 2017 at 5:08:08 PM UTC-7, James Davis wrote:
> 
> I like to stick with the standards I learned in my Typing class in
> high school.  It is from the Gregg Typing book.  8"x11" paper, with
> 1" margins all around, leaves 6.5" line length and 9" of lines top
> to bottom.  At 10 cpi and 6 lines per inch, that is 65 chars/line
> and 64 lines per page.  I use Courier New, a monospaced font, too.

9 times 6 equals 64?  That must be an example of that "new math"
 of which I've been hearing so much! ;-)

I try to keep my source lines at 55 columns or less, so the sbasm2
 .lst file ends up at 79 columns or less.  It just looks tidier.

Mike B.

[toc] | [prev] | [next] | [standalone]


#3845

FromBrian Patrie <bpatrie@bellsouth.spamisicky.net>
Date2017-08-27 00:48 -0500
Message-ID<ontmfo$fne$1@gioia.aioe.org>
In reply to#3844
On 2017-08-26 23:15, Michael Barry wrote:
> 9 times 6 equals 64?  That must be an example of that "new math"
> of which I've been hearing so much! ;-)

No, no!  6 by 9 is 42!  ;)

[toc] | [prev] | [next] | [standalone]


#3846

FromMichael J. Mahon <mjmahon@aol.com>
Date2017-08-27 01:54 -0500
Message-ID<J7ydnX_i98IP8T_EnZ2dnUU7-RVQAAAA@giganews.com>
In reply to#3845
Brian Patrie <bpatrie@bellsouth.spamisicky.net> wrote:
> On 2017-08-26 23:15, Michael Barry wrote:
>> 9 times 6 equals 64?  That must be an example of that "new math"
>> of which I've been hearing so much! ;-)
> 
> No, no!  6 by 9 is 42!  ;)
> 

ROFL!

I'm glad I know where my towel is! ;-)

-- 
-michael - NadaNet 3.1 and AppleCrate II:  http://michaeljmahon.com

[toc] | [prev] | [next] | [standalone]


#3847

From"James Davis" <JPD.Enterprises@Live.com>
Date2017-08-27 08:49 -0700
Message-ID<onupme$5o6$1@gioia.aioe.org>
In reply to#3844
Typographical Error!  Sorry.  6*9=54.

"Michael Barry"  wrote in message 
news:bfddedb2-b623-493d-8d58-d45d1606f635@googlegroups.com...

On Saturday, August 26, 2017 at 5:08:08 PM UTC-7, James Davis 
wrote:
>
> I like to stick with the standards I learned in my Typing class 
> in
> high school.  It is from the Gregg Typing book.  8"x11" paper, 
> with
> 1" margins all around, leaves 6.5" line length and 9" of lines 
> top
> to bottom.  At 10 cpi and 6 lines per inch, that is 65 
> chars/line
> and 64 lines per page.  I use Courier New, a monospaced font, 
> too.

9 times 6 equals 64?  That must be an example of that "new math"
of which I've been hearing so much! ;-)

I try to keep my source lines at 55 columns or less, so the 
sbasm2
.lst file ends up at 79 columns or less.  It just looks tidier.

Mike B. 

[toc] | [prev] | [next] | [standalone]


#3848

FromJohn Brooks <jbrooks@blueshiftinc.com>
Date2017-08-27 12:42 -0700
Message-ID<adefd89d-15d8-4401-995f-9542b774eb3e@googlegroups.com>
In reply to#3836
On Thursday, August 24, 2017 at 8:10:55 PM UTC-7, roger....@gmail.com wrote:
> Hi folks,
> 
> I'll be posting a 6502 program on comp.sys.apple2 soon. It's under $80 bytes long, so I will include the source in the post.
> 
> I use a cross assembler and have a self-imposed line length limit of 79 columns.
> 
> If that's too wide, what's the max line length of assemblers that any of you are _currently_ using?
> 
> Thanks for your thoughts.

I use Merlin-8 2.58 for development of hardware-dependent code on ][, ][+, //e, or IIc.

Merlin-8 requires that all source lines are 64 chars in length or shorter. Even comment lines longer than 64 characters will cause an asm error and prevent assembly.

-JB
@JBrooksBSI

[toc] | [prev] | [next] | [standalone]


#3849

FromHugh Hood <hughhood@earthlink.net>
Date2017-08-27 18:45 -0500
Message-ID<4o2dnWH7eMISxD7EnZ2dnUU7-S3NnZ2d@earthlink.com>
In reply to#3848
John,

Does this [64-character line maximum] of version 2.58 vary from the 
stated limit of Merlin 8/16?

I ask because the Merlin 8/16 manual provides:

"The maximum allowable combined OPERAND + COMMENT length is 64 
characters. You will get an OPERAND TOO LONG error if you use more than 
this. A comment line by itself is also limited to 64 characters."

"The maximum line length is 80 characters. Lines longer than that will 
be truncated IF they are edited."

I'll confess to getting a little lax with syntax since moving most of my 
stuff to Merlin32 (which is _very_ forgiving), but I'm certain I've 
assembled source with lines in Merlin on the Apple II containing more 
than 64 characters.




Hugh Hood



On 8/27/2017 2:42 PM, John Brooks wrote:
> 
> I use Merlin-8 2.58 for development of hardware-dependent code on ][, ][+, //e, or IIc.
> 
> Merlin-8 requires that all source lines are 64 chars in length or shorter. Even comment lines longer than 64 characters will cause an asm error and prevent assembly.
> 
> -JB
> @JBrooksBSI
> 

[toc] | [prev] | [next] | [standalone]


#3850

FromJohn Brooks <jbrooks@blueshiftinc.com>
Date2017-08-27 21:30 -0700
Message-ID<6b498718-1f9a-4a0d-bda1-2fb001cd97c1@googlegroups.com>
In reply to#3849
On Sunday, August 27, 2017 at 4:45:24 PM UTC-7, Hugh Hood wrote:
> John,
> 
> Does this [64-character line maximum] of version 2.58 vary from the 
> stated limit of Merlin 8/16?
> 
> I ask because the Merlin 8/16 manual provides:
> 
> "The maximum allowable combined OPERAND + COMMENT length is 64 
> characters. You will get an OPERAND TOO LONG error if you use more than 
> this. A comment line by itself is also limited to 64 characters."
> 
> "The maximum line length is 80 characters. Lines longer than that will 
> be truncated IF they are edited."
> 
> I'll confess to getting a little lax with syntax since moving most of my 
> stuff to Merlin32 (which is _very_ forgiving), but I'm certain I've 
> assembled source with lines in Merlin on the Apple II containing more 
> than 64 characters.
> 
> 
> 
> 
> Hugh Hood
> 
> 
> 
> On 8/27/2017 2:42 PM, John Brooks wrote:
> > 
> > I use Merlin-8 2.58 for development of hardware-dependent code on ][, ][+, //e, or IIc.
> > 
> > Merlin-8 requires that all source lines are 64 chars in length or shorter. Even comment lines longer than 64 characters will cause an asm error and prevent assembly.
> > 
> > -JB
> > @JBrooksBSI
> >

> > Does this [64-character line maximum] of version 2.58 vary from the 
> stated limit of Merlin 8/16?

I think the 64-character limit described in the manual is what I see/experience in Merlin 2.58.


> I'll confess to getting a little lax with syntax since moving most of my 
> stuff to Merlin32 (which is _very_ forgiving), but I'm certain I've 
> assembled source with lines in Merlin on the Apple II containing more 
> than 64 characters.

Is that with Merlin v2.58 (6502), Merlin-16 v3.51 (65816 ProDOS 8), or Merlin-16 v4.03 (65816 GS/OS)?

Only Merlin v2.58 has the 64-character restriction to my knowledge.

-JB
@JBrooksBSI

[toc] | [prev] | [next] | [standalone]


#3857

FromHugh Hood <hughhood@earthlink.net>
Date2017-08-28 22:42 -0500
Message-ID<gIudnbNDCetZfznEnZ2dnUU7-SvNnZ2d@earthlink.com>
In reply to#3850
On 8/27/2017 11:30 PM, John Brooks wrote:
> 
> Is that with Merlin v2.58 (6502), Merlin-16 v3.51 (65816 ProDOS 8), or Merlin-16 v4.03 (65816 GS/OS)?
> 
> Only Merlin v2.58 has the 64-character restriction to my knowledge.
> 
> -JB
> @JBrooksBSI
> 

John,

Now that you mention it, [on an Apple II] I primarily use Merlin-16 
v3.53 under ProDOS 8. Before getting a IIGS I had a IIe with a Transwarp 
containing a 65C802 so I suppose I never fooled with Merlin-8.

Regardless, the 8/16 manual still states there is a 64-character limit 
on the combined operand and comment, but an 80-character overall limit.

Maybe I should locate my Merlin-8 and try to assemble some of my 
79-character lines to see what happens, although even those won't have a 
combined operand + comment > 64 characters, since I run my second Tab 
stop at column 22 and never go past column 79.

FWIW, it would seem like a 64-character limit on Label + Opcode + 
Operand + Comment would be pretty restrictive for guys like me who need 
good commenting to remember what the heck they've done, whereas the more 
Woz-like among us probably don't need comments at all. ;-)




Hugh Hood

[toc] | [prev] | [next] | [standalone]


#3859

FromJohn Brooks <jbrooks@blueshiftinc.com>
Date2017-08-28 21:40 -0700
Message-ID<6919e990-5a25-41a0-9f8f-d979f41448c1@googlegroups.com>
In reply to#3857
On Monday, August 28, 2017 at 8:43:05 PM UTC-7, Hugh Hood wrote:
> On 8/27/2017 11:30 PM, John Brooks wrote:
> > 
> > Is that with Merlin v2.58 (6502), Merlin-16 v3.51 (65816 ProDOS 8), or Merlin-16 v4.03 (65816 GS/OS)?
> > 
> > Only Merlin v2.58 has the 64-character restriction to my knowledge.
> > 
> > -JB
> > @JBrooksBSI
> > 
> 
> John,
> 
> Now that you mention it, [on an Apple II] I primarily use Merlin-16 
> v3.53 under ProDOS 8. Before getting a IIGS I had a IIe with a Transwarp 
> containing a 65C802 so I suppose I never fooled with Merlin-8.
> 
> Regardless, the 8/16 manual still states there is a 64-character limit 
> on the combined operand and comment, but an 80-character overall limit.
> 
> Maybe I should locate my Merlin-8 and try to assemble some of my 
> 79-character lines to see what happens, although even those won't have a 
> combined operand + comment > 64 characters, since I run my second Tab 
> stop at column 22 and never go past column 79.
> 
> FWIW, it would seem like a 64-character limit on Label + Opcode + 
> Operand + Comment would be pretty restrictive for guys like me who need 
> good commenting to remember what the heck they've done, whereas the more 
> Woz-like among us probably don't need comments at all. ;-)
> 
> 
> 
> 
> Hugh Hood

> Now that you mention it, [on an Apple II] I primarily use Merlin-16 
> v3.53 under ProDOS 8.

Hugh, where can I find that version? It's slightly newer than my 1988 v3.51 version.


> FWIW, it would seem like a 64-character limit on Label + Opcode + 
> Operand + Comment would be pretty restrictive

I've gotten in the habit of putting labels on their own line. That allows them to be >8 char without running into the opcode column, and avoids tabbing mismatches when moving source between Merlin32 in Visual Studio Code on the Mac, and Merlin8/16 on the ][, //e or IIGS.

I have a handy dev disk with both 6502 Merlin v2.58 and 65816 Merlin-16 v3.51. They are small enough to fit on a 5.25 or ram disk:

Directory: /MERLIN/                   Page 1                          28-AUG-17

Filename                     Blocks Type   Modified    Created   Length Subtype

PRODOS________________________   32  SYS  19-SEP-16  28-AUG-17    $3E00   $0000
QUIT.SYSTEM___________________    1  SYS  15-SEP-16  28-AUG-17      $38   $2000
BASIC.SYSTEM__________________   21  SYS  30-AUG-16  28-AUG-17    $2800   $2000
MERLIN16______________________    1  DIR  28-AUG-17  28-AUG-17     $200   $2000
  MERLIN.SYSTEM_______________   45  SYS  28-SEP-88  28-AUG-17    $56B8   $2000
  PARMS_______________________    1  BIN  24-SEP-15  28-AUG-17      $B2 A=$8000
  LINKER______________________    8  BIN   8-JUL-88  28-AUG-17     $DFA A=$8000
  PARMS.S_____________________   14  TXT  24-SEP-15  28-AUG-17    $183F R=$0000
MERLIN8_______________________    1  DIR  28-AUG-17  28-AUG-17     $200   $2000
  MERLIN.SYSTEM_______________   38  SYS  25-JAN-88  28-AUG-17    $48F6   $2000
  PARMS_______________________    1  BIN  26-MAR-17  28-AUG-17      $2C A=$8000
  LINKER______________________    8  BIN   8-JUL-88  28-AUG-17     $DFA A=$8000
  PARMS.S_____________________    6  TXT  26-MAR-17  28-AUG-17     $8CD R=$0000
  ED__________________________    8  BIN  21-OCT-87  28-AUG-17     $C4A A=$9DB6

Blocks free: 1408 Blocks used:  192 Blocks in dir:  185 Total blocks: 1600

Number of standard files:   12              Number of subdirectories:    2


-JB
@JBrooksBSI

[toc] | [prev] | [next] | [standalone]


#3860

FromHugh Hood <hughhood@earthlink.net>
Date2017-08-29 00:58 -0500
Message-ID<D5CA6CB1.13CDB%hughhood@earthlink.net>
In reply to#3859
in article 6919e990-5a25-41a0-9f8f-d979f41448c1@googlegroups.com, John
Brooks at jbrooks@blueshiftinc.com wrote on 8/28/17 11:40 PM:

>> Now that you mention it, [on an Apple II] I primarily use Merlin-16
>> v3.53 under ProDOS 8.
> 
> Hugh, where can I find that version? It's slightly newer than my 1988 v3.51
> version.
> 
> 

John,

Check your email. I sent you a SHK file containing v3.53 of Merlin-16 along
with the (3) Linkers.

The file date is 06/18/89, which is about 9 months newer than the version
you're using. The linkers are all dated in 1989, too.

If this isn't available anywhere else (I bought 8/16/16+ from RWP sometime
around 1994), I'll dig out my original floppies and image them for upload.





Hugh Hood

[toc] | [prev] | [next] | [standalone]


#3865

FromMichael Pohoreski <michael.pohoreski@gmail.com>
Date2017-08-29 09:47 -0700
Message-ID<980a7eb4-4a13-424d-a6a1-b6cea72923e0@googlegroups.com>
In reply to#3857
>  whereas the more Woz-like among us probably don't need comments at all. ;-) 

That's a fucking cop out -- and yes, I saw the smiling at the end. :-)

* Code shows HOW.
* Comments show WHY.

A lot of people got the _completely_ wrong idea about commenting from bad teachers do dumb shit like this:

   i++;  // increment i

No shit, Sherlock!  Stop cluttering up the code with useless crap.

With _descriptive_ variable names most of the time you don't even need comments:

    while( nLen --> 0 )
        *pDst++ = *pSrc++;

Sure the above memcpy() is a toy example but it should illustrate the point of how good names negates the need for most comments.

A comment will say _why_ your doing a memcpy. For example, maybe it is part of a fast memory copy version.

// 64-bit copy
// Copy 64-bits at a time, then remaining 8 bits.
// ========================================================================
void fast_memcpy( char *dst, const char *src, size_t len )
{
    /* */ double *pDst = (/* */ double*) dst;
    const double *pSrc = (const double*) src;

    size_t nLen = len / sizeof( double );
    size_t nRem = len % sizeof( double );

    size_t nEnd = nLen * sizeof( double );

    while( nLen --> 0 )
        *pDst++ = *pSrc++;

    src += nEnd;
    dst += nEnd;

    while( nRem --> 0 )
        *dst++ = *src++;
}

[toc] | [prev] | [next] | [standalone]


#3853

FromDavid Schmenk <dschmenk@gmail.com>
Date2017-08-28 10:42 -0700
Message-ID<c1eb0d0e-d36d-4109-a0da-eb70edc419ed@googlegroups.com>
In reply to#3836
On Thursday, August 24, 2017 at 8:10:55 PM UTC-7, roger....@gmail.com wrote:
> Hi folks,
> 
> I'll be posting a 6502 program on comp.sys.apple2 soon. It's under $80 bytes long, so I will include the source in the post.
> 
> I use a cross assembler and have a self-imposed line length limit of 79 columns.
> 
> If that's too wide, what's the max line length of assemblers that any of you are _currently_ using?
> 
> Thanks for your thoughts.

To throw another wrench in the discussion, I went to 16 character tab stops years ago in my assembly code. I really appreciate the extra room for descriptive labels. I'm tired of trying to decipher 7 character label meanings. Instead of including listing directly into usenet posts, I'd use a link to the file on GitHub.

Dave...

[toc] | [prev] | [next] | [standalone]


#3854

FromMichael Pohoreski <michael.pohoreski@gmail.com>
Date2017-08-28 11:34 -0700
Message-ID<2debc467-2c88-4bda-a721-002d7008ea4c@googlegroups.com>
In reply to#3853
I hear ya David!  8 chars for labels doesn't (always) cut it. There is little point to abbreviate the heck out of everything in 2017.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.sys.apple2.programmer


csiph-web