klotz: pdp-8*

0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag

  1. 2018-07-28 Tags: , , , by klotz
  2. 2018-07-23 Tags: , , , , by klotz
  3. 2018-04-11 Tags: by klotz
  4. 2017-08-12 Tags: , , , , , , by klotz
  5. 2016-10-20 Tags: by klotz
  6. 2016-09-14 Tags: by klotz
  7. 2016-03-15 Tags: , , by klotz
  8. 2016-03-15 Tags: , , by klotz
  9. Array Copy
    This program makes use of the auto-index registers at memory locations 10 and 11 to copy an array from one location to another. Location 10 (labelled as pArr1), references the array arr1 (the original). Location 11 (pArr1), references arr2 (the copy). Since the auto-index registers increment before being used, pArr1 and pArr2 are initialised to arr1-1 and arr2-1. Thus, when the first iteration of the loop executes, pArr1 and pArr2 will be correctly set to arr1 and arr2.
    / array copy:

    *0200
    cla cll

    / copy arr1 to arr2

    copy,tad i pArr1
    dca i pArr2
    isz count
    jmp copy

    / done

    hlt

    / data

    count, 7772

    / auto-indexing

    *10
    pArr1, arr1-1
    pArr2, arr2-1

    / the arrays

    *220
    arr1, 1111;2222;3333;4444;5555
    *240
    arr2,0;0;0;0;0
    2016-03-06 Tags: by klotz
  10. 2016-03-05 Tags: , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: pdp-8

About - Propulsed by SemanticScuttle