turboscrew's Profile User Rating: -----

Reputation: 100 Stalwart
Group:
Active Members
Active Posts:
637 (0.68 per day)
Joined:
03-April 12
Profile Views:
12,297
Last Active:
User is offline Today, 05:25 AM
Currently:
Offline

Previous Fields

Country:
FI
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   turboscrew has not set their status

Posts I've Made

  1. In Topic: Assembly Language Help In computer Science HW

    Posted 31 Oct 2014

    Then the link I put in my previous post can be helpful?
    (From the "The Pcode Instruction Set" on.)
  2. In Topic: Assembly Language Help In computer Science HW

    Posted 31 Oct 2014

    I mean Pcode, like HERE

    under "A Machine encoding of the Pcode Instruction Set".

    (Couldn't find anything further really.)

    At least I couldn't recognize that kind of assembly.
  3. In Topic: LC-3 Assembly language help

    Posted 31 Oct 2014

    Yes, private messages are fine.
  4. In Topic: Assembly Language Help In computer Science HW

    Posted 31 Oct 2014

    Is this Pcode or what?
  5. In Topic: LC-3 Assembly language help

    Posted 31 Oct 2014

    No need to quote, if it's obvious what you are responding to.

    Now I got it.
    .ORIG x3000 ; start address of the code
    pseudocode is something like:
    get loop counter (r2)from user
    set data_address (r1) to x3200
    set sum_of_1_bits (r4) to zero
    check_loop:
      load r0, ri, #0
      count '1'-bits in r0 ; you have done that already?
      add count of '1'- bits in r4
      add r1, r1, #1
      add r2, r2, #-1
      branch if not zero 'check_loop'
    set data_address (r1) to x3100 ; you can re-use r1
    store result (r4) to address in r1
    ...
    
    .ORIG x3200
    .FILL <data to check>
    
    

    In case your problem is 16-bit addresses, you can "emulate" 16-bit absolute addresses:

      ldi r0, address ; load (indirect) from the address given at 'address'
      br skip1 ; branch unconditionally over the address
    address: .FILL target_address ; the actual target address
    skip1: next instruction ; 'normal' execution continues here
    
    

    Does this help?

My Information

Member Title:
D.I.C Addict
Age:
51 years old
Birthday:
February 6, 1963
Gender:
Location:
Nokia (town), Finland
Interests:
Computers, programming, different branches of science, different branches of technology
Full Name:
Juha Aaltonen
Years Programming:
30
Programming Languages:
C, C++, Ada, Pascal, Lisp, Occam, Forth, Fortran and some assembly
(6502, 6800, 6809, 68000, 8085, 8031, PDP11/70, basics of C64x+ and PPC)

Contact Information

E-mail:
Private

Friends

Comments

Page 1 of 1
  1. Photo

    askyy Icon

    06 Apr 2013 - 19:42
    would you like tom give me some help doing a programm in aseembly MIPS to verify if a number is power of two?
  2. Photo

    cool_moon Icon

    24 Apr 2012 - 03:49
    I didnt undestand ur explanation will u please explain it clearly
  3. Photo

    cool_moon Icon

    23 Apr 2012 - 23:29
    hi..Im new to lpc1768 please help me to understand the GPIO selection. how to select the gpio. i worked in mc8051 but it is entirly different from that. kindly help me
  4. Photo

    jon.kiparsky Icon

    10 Apr 2012 - 23:53
    Well, I've tried to set up a discussion. Let's see what comes of it.
    In answer to your question, I found my way to Finnish because my father is a Finn, and I'm interested in languages. As I say, though, Finnish defeated me pretty soundly.
Page 1 of 1