Here is an example of some of the first code I wrote.

Can you tell what each does and what kind of computer it might rub on.

Mystery Code 1:

start LDY #$FF loop1 LDX #$FF loop2 DEX BNE loop2 DEY BNE loop1 RTS
Mystery code 2:
mlt16 LDA #$00 STA $26 STA $27 LDX #$16 nxtbt LSR $21 ROR $20 BCC align LDA $26 CLC ADC $22 STA $26 LDA $27 ADC $23 align ROR A STA $27 ROR $26 ROR $25 ROR $24 DEX BNE nxtbt RTS

The first correct answer to both questions will be sent a genuine picture/jpeg of an orginal single-sided, single-density 8 inch floopy disk drive (I think maybe). mitd-Made in the Dark
'My favourite colour appears to be grey.'


In reply to RE: What was your first program? by mitd
in thread What was your first program? by Ovid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.