• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

That is it : I am becoming a programmer.

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #71
    Originally posted by Spacecadet View Post
    Give me a chance, I was 7 when the CPC464 was launched (and not much older when I wrote my first program)
    Code:
    ;; A simple program to display "Hello World". This program
    ;; will work with CP/M 2.1 and C/PM +
    
    
    ;; origin for CP/M programs
    org &100
    nolist
    write"cpmex1.com"
    
    ;;---------------------------------------------------------
    .bdos equ 5
    
    ;;---------------------------------------------------------
    ;; display message and then return back to the command-line
    
    ld hl,message
    call display_message
    ret
    
    ;;---------------------------------------------------------
    ;; HL = pointer to null terminated message
    .display_message
    ld a,(hl)				;; get ASCII character
    inc hl					;; increment pointer for next character
    or a					;; end of message marker (0)?
    ret z					;; quit if end of message marker found.
    
    call display_char		;; send character to console output
    jp display_message		;; loop for next char
    
    ;;---------------------------------------------------------
    ;; put character to console
    ;;
    ;; A = ASCII character
    
    .display_char
    push hl
    ld c,2			;; console output function id
    ld e,a			;; ASCII character
    call bdos		;; call BDOS to execute function
    pop hl
    ret
    
    ;;---------------------------------------------------------
    ;; the message to display
    
    .message
    defb "Hello World!",0
    By any chance?

    Not my code btw.

    Comment


      #72
      Real programming:

      Code:
      SR    R15,R15  put zero into register 15 (return code)
      BR    R14      branch to the address in register 14 (return to scheduler)
      Brexit is having a wee in the middle of the room at a house party because nobody is talking to you, and then complaining about the smell.

      Comment


        #73
        Originally posted by darmstadt View Post
        Real programming:

        Code:
        SR    R15,R15  put zero into register 15 (return code)
        BR    R14      branch to the address in register 14 (return to scheduler)
        I really used to hate people who commented linkages.

        It's obvious! 'return to scheduler' indeed!

        Anyway. Never mind the return. Can you code an entry linkage without a 'begin' macro?

        I used to trip up loads of 'expert assembler programmers' with that question at interviews.

        You've come right out the other side of the forest of irony and ended up in the desert of wrong.

        Comment


          #74
          Originally posted by bogeyman View Post
          I really used to hate people who commented linkages.

          It's obvious! 'return to scheduler' indeed!

          Anyway. Never mind the return. Can you code an entry linkage without a 'begin' macro?

          I used to trip up loads of 'expert assembler programmers' with that question at interviews.
          Thats actually the code for IEFBR14, the program that does nothing yet everyone uses
          Brexit is having a wee in the middle of the room at a house party because nobody is talking to you, and then complaining about the smell.

          Comment


            #75
            Originally posted by Spacecadet View Post
            Hehe

            Some people I've worked with started progamming at a time when instead of having a PC on your desk you had an ashtray.
            Only the lab guys had physical access to a/the computer
            In my first professional programming job we had ashtrays in the lab

            Comment


              #76
              Originally posted by NickFitz View Post
              In my first professional programming job we had ashtrays in the lab
              Eee, it were all paper tape when I were a lass.

              No not really, but for some bizarre reason I had to learn how to read it
              +50 Xeno Geek Points
              Come back Toolpusher, scotspine, Voodooflux. Pogle
              As for the rest of you - DILLIGAF

              Purveyor of fine quality smut since 2005

              CUK Olympic University Challenge Champions 2010/2012

              Comment


                #77
                Originally posted by Zippy View Post
                Eee, it were all paper tape when I were a lass.

                No not really, but for some bizarre reason I had to learn how to read it
                We used paper tape on the PDP8/e at school, but that was replaced by a couple of SWTPC 6800 systems in 1979.

                They each had 64K of RAM. They were bought with the budget that had originally been allocated to upgrade the PDP8/e from 8K to 16K of core

                Comment


                  #78
                  Originally posted by NickFitz View Post
                  They were bought with the budget that had originally been allocated to upgrade the PDP8/e from 8K to 16K of core
                  DEC = licence to print money !

                  Comment


                    #79
                    Originally posted by Platypus View Post
                    DEC = licence to print money !
                    To be fair, core memory was literally hand-stitched, so it was always going to be more expensive than soldering a few chips to a board

                    Comment


                      #80
                      I miss BASIC on my ZX spectrum 48k

                      oh happy days
                      The proud owner of 125 Xeno Geek Points

                      Comment

                      Working...
                      X