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

Reputation: 100 Stalwart
Group:
Active Members
Active Posts:
610 (0.82 per day)
Joined:
03-April 12
Profile Views:
11,884
Last Active:
User is offline Yesterday, 02:53 PM
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: Make a z80 asm file, compile using ZASM

    Posted 18 Apr 2014

    Looks like z80-conv is supposed to do that.

    Quote

    2005-08-29
    I did a complete rewrite and added a linker. The documentation is not yet ready, but for normal operation "zasm --help" should do the trick. The converter moved out of zasm itself and is called z80-conv now. A new feature is a small send program (built on libti*). Because of this last things, zasm doesn't need libti* anymore. z80-conv and tisend (the sending utility) are in the z80-tools package.
  2. In Topic: Need psuedocode help re: arrays

    Posted 14 Apr 2014

    This is your hint:

    For index = 0 To SIZE - 1
    
    Display "Enter the answers for question ", index + 1
    
    Input answers[index]
    
    End For
    
    

    Here each element of array 'answers' are read one by one.

    Just compare elements of two arrays one by one and count equalities.

    If array1[index] == array2[index] Then
        Increment equalities-counter
    End If
    
    
  3. In Topic: Debug Command Promt (Bubble Sort Algorithm)

    Posted 14 Apr 2014

    This should ba in assembly section, but anyway:
    Why do you compare bl with al? You should have started another go (compare al and ah).
  4. In Topic: QuickSort MIPS element swap issue

    Posted 3 Apr 2014

    I'm not fluent enough with MIPS to go through this with the time I have, and I don't have any simulator or anything (and I don't get the labels...), but check here:

        #calculate piv
        sll $t0, $s1, 2
        add $t0, $t0, $s0
        lw  $s4, 0($t0)
         
    while:
        blt $s2, $s3, whileBody #while l < r execute while
        j   endWhile        #otherwise exit while
         
    whileBody:
         
        while2:
            sll $t0, $s3, 2 #$t0 = r*4
            add $t0, $t0, $s0   #$t0 = v[r]
            lw  $t1, 0($t0) #get val in v[r]
            bgt $t1, $s4, whileBody2 #if v[r] > pivot execute 2nd while
            j   endWhile2   #else exit 2nd while
    
    


    If the 'bgt $t1, $s4, whileBody2' doesn't branch, 'swap' will be called, but note that
    add $t0, $t0, $s0
    lw  $s4, 0($t0)
    

    and
    add $t0, $t0, $s0   #$t0 = v[r]
    lw  $t1, 0($t0) #get val in v[r]
    

    So I can't see how $t1 and $s4 can be anything else but equal.

    Also this branch should be taken
    blt $s2, $s3, whileBody #while l < r execute while
    


    There are still two places that may keep the swap from happening:

        while3:
            blt $s2, $s3, testAnd   #check that l is still < r
    
    

    and
            ble $t2, $s4, whileBody3     #if v[l] <= pivot execute while
    
    


    Check those branches with some situation where swap should occur.
    Maybe that also reveals the source of the 'wild pointer' too.
  5. In Topic: MIPS data load loop?

    Posted 25 Mar 2014

    A beginner frienly way might be:
    allocate registers for:
    base address
    index
    count
    value
    current address

    load value and base address

    loop:
    current address = base address + index
    store data to current address
    increment index
    decrement count
    if count is not zero, jump to loop

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