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

Reputation: 100 Stalwart
Active Members
Active Posts:
644 (0.64 per day)
03-April 12
Profile Views:
Last Active:
User is offline Nov 23 2014 06:40 AM

Previous Fields

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

Latest Visitors

Icon   turboscrew has not set their status

Posts I've Made

  1. In Topic: Writing assembly code to rotate left with carry. Confused by C main.

    Posted 13 Nov 2014

    How the parameters are sent to an assembly function depends on your architecture and C compiler.

    Most processors these days have a document calles ABI (or EABI = Embedded ABI) that defines how the processor manufacturer wishes the interface to work. Most C-compilers respect it. Also, many compilers have that information in their compiler manuals.

    I guess in calling rotateLeft, the buffer address (in C 'buffer' is a char pointer) is put in some register and the bytesRead-value in another register prior to the subroutine call. Some compilers may push the parameters in stack instead.
  2. In Topic: marie assembly simulator

    Posted 13 Nov 2014

    If you follow "manually" the code from 'mult' on, you should get it.

    If you write open the execution...


    28 mult, DEC 0
    29 load x
    30 add x
    31 store xx
    32 jump loop

    07 loop, load y
    08 skipcond 400
    09 subt s
    10 skipcond 400
    11 store y
    12 skipcond 400
    13 jump mult
  3. In Topic: Assembly instruction sets

    Posted 7 Nov 2014

    I haven't programmed in assembly for a long time, but I've been mostly involved with 680x, 680x0, PowerPC, TI C6000, PDP-11, 8085, 6502 in no particular order. I've also been involved with some other architectures, like x86, MIPS, ARM and SPARC, but I'm not very fluent with them.
  4. In Topic: Assembly code newbie needing a lot of help !

    Posted 5 Nov 2014

    05   DELAY01 DECFSZ  DEL,1 
    06           GOTO    $-.1        ;Go to the location $-.1

    Here the location is 'DELAY01' = current line - 1.
    (Note, not current address - 1.)
    The dot ('.')before a number means that the number is decimal.

    Also, the line 05 'defines a subroutine' (actually label).

    The instructions you can check from here.

    Not sure, but I think the 'file register' means register that belongs to register file - kind of small memory used as registers. Only one of them can be used as source at a time. The other registers are probably single dedicated registers that can be accessed (in electronics sense) independantly.




    This adds contents of W to the low byte of PC - a "computed goto".


    28 SCAN MOVLW B'00000001' ;SEGMENT 01
    30 MOVF M1,0
    33 CALL DELAY01

    First B'00000001' is written to PORTA (I don't know what is attached there)
    Then value from 'M1' is loaded into W and mapped via calling 'TABLE'
    The result is written into PORTB and DELAY01 is called.
    It delays probably long enough that one can see what's displayed, and then clears the

    Hard to say more, because I don't know what's attached in the ports.
  5. In Topic: How to start a program with assembly

    Posted 1 Nov 2014

    Assembly is a language just like C. You compile (assemble) and link to get an executable. When you get an executable (.exe or a.out or whatever) you execute it the same way regardless of the source language.

My Information

Member Title:
D.I.C Addict
51 years old
February 6, 1963
Nokia (town), Finland
Computers, programming, different branches of science, different branches of technology
Full Name:
Juha Aaltonen
Years Programming:
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




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