The London Assembly is a 25-member elected body, part of the Greater London Authority, that scrutinises the activities of the Mayor of London and has the power, with a two-thirds super-majority, to amend the Mayor's annual budget and to reject the Mayor's draft statutory strategies. The London Assembly was established in 2000 and meets at City Hall on the south bank of the River Thames, close to Tower Bridge. The Assembly is also able to investigate other issues of importance to Londoners (most notably transport or environmental matters), publish its findings and recommendations, as well as make proposals to the Mayor.
Homework Statement
given that f,g,h,i and j are assigned to registers s0,s1,s2,s3 and s4
and the base addresses for the arrays A,B are in s6,s7
convert this C statement to assemply language: B[8] = A[i-j];
Homework Equations
none
The Attempt at a Solution
image attachedi attached both...
In ABAQUS, I have modeled a assembly containing two parts with lot of constraints and other engineering features which are very crucial to my FE analysis. The job ran successfully and I have got satisfactory results. As a next step, I would like to import this model into the Multi Body Software...
I have the following program. I cannot figure out how to Add two-digit input and three-digit output capacity to it though.
; This program is designed to demonstrate the use of subroutines in
; programming.
; This file is phase 3 and introduces a multiply subroutine.
; Current support...
I think I have solved my problem for a friction force between a bolted assembly, or at least I think did. If a torque was given of 267.6 in-lbs and a constant of k=0.2 and the diameter(d) =0.5,
T=k*P*d should equal 267.6=0.2*P*0.5, resulting in P=2676lbs.
Then using the equation:
Tc=F*fc*dc/2...
i am new to this one.and this is about assembly programming.on reading about assembly on tutorialspoint i came up to this.i didnt understan it correctly.it says
"Allocates10 words (2 bytes) each initialized to 0"
what does this statement mean?
please someone tell me about the meaning of this...
I want to teach myself Assembly language, so I downloaded the next text:
http://www.ic.unicamp.br/~pannain/mc404/aulas/pdfs/Art%20Of%20Intel%20x86%20Assembly.pdf
and the next software:
http://flatassembler.net/
Do I need to download anything else?
in the first link it says the packages that are...
I have been working on designing something in SolidWorks for the first time, which involves several parts with surfaces that slide into one another. I am wondering if there is a table or a standardization in terms of the distance that should be left between metal surfaces with sliding parts. I...
I am working with a set of alloys that must first be ground up in a ball mill at cryogenic temperatures. It is important that no contamination makes it into the material and careful steps are taken to ensure this end.
Unfortunately when we ran a set of samples through our RBS lab and then again...
I am trying to use computer modelling to see stress. I want to compare it to my hand calculation, which uses the frusta cone method to find the stiffness of the joint. This way, I can check my calculation in a conceptual way.
The model includes a nylon insert nut, a threaded rod, a washer and a...
hello friends
look at this old post by mr. job
its very great explanation by mr. job
I have little doubt
I understood how machine code generate but I did not understand how does assembly code make from machine code
I tried to understand with below example
machine language...
1. A T-shaped assembly is made of two identical uniform bars of length d and mass m each. One end of one of the bars is rigidly connected to the midpoint of the other. The assembly is pivoted at the connection point and held in position A. After it is released, the assembly swings down in the...
Homework Statement
Show that the total weight w of an assembly in thermal equilibrium is a maximum.
Homework Equations
S= k ln W?
dS = dQ/ T ?
S is maximize when thermal equilibrium is reached.
The Attempt at a Solution
First of all, i don't know what does "total weight w" means...
I need a good 64 bit assembly book for beginners, can you recommend one, I'm kinda short on cash so I can only afford one.
I have a few 32 bit books like -Linux assembly, high level assembly, and peter nortons assembly but I got to admit they aren't very good. I want to play around with...
I have an example given in the textbook that defines port A bits 5 as PA5 equ 0x40004080. Port A is 0x40004000, and the first 7 bits are for data. I do not see how bit 5 is 0x80. I figured that would be bit 7 and bits 5 would be 0x20. We use ARM assembly language for LM4F120H5QR microcontroller.
Homework Statement
I have an assembly and I can't seem to figure out what it does.
Homework Equations
The Attempt at a Solution
I know the bottom part simply mounts it to a table or something and its pretty obvious how it would be assembled however I'm not sure if the device as...
Homework Statement
A piston–cylinder assembly contains air, initially at 2 bar, 300 K, and a volume of 2 m3. The air undergoes a process to a state where the pressure is 1 bar, during which the pressure–volume relationship is pV 5 constant. Assuming ideal gas behavior for the air, determine...
Hey guys!
I just got a new Tiva C MCU. It's architecture is ARM, and I have no experience programming in assembly using said architecture. To start, I'm trying to run a simple program that puts a value in a register. In an MSP430, the project I'm trying to do would look something like this...
Hey all, I was doing a bit of reading and ran into the following code (this is a function prologue for a main function, if you need more code or the actual C code let me know):
push ebp
mov ebp, esp
sub esp, 0x18
and esp, 0xblackf0
mov eax, 0x0
sub esp, eax
So I understand the...
Dear All,
I'm very familiar with the composition of finite element local stiffness, mass matrices as per any arbitrary element rod, beam, plate, shell and integration of it into a global stiffness matrix. But I find it but of an obscure on how to integrate the constraint matrix into the...
I'm trying to write a MIPS assembly program that implements the calculation of n! Well i wouldn't be here if i were successful.When i try to run the following code on PCSpim this appears on the screen:
"Exception 6 [Bad instruction address] occurred and ignored"
Can anyone help...
Hi, I was wondering if there was anything like PICAXE only using the assembly language. That is, an electronic component programmed using assembly for educational purposes, and perhaps found in kits with various tutorials. Thanks.
I'm writing a MIPS assembly program and I'm trying to figure out a way to display a given integer in either decimal or binary using only one function with two parameters. The function takes in two parameters: an integer and a base (either '2' or '10'). I'd like to not edit anything other than...
Homework Statement
If EAX contains 00000200H, EBX contains 00000003H, and the data segment contains 1000H, what is the effective address generated by this instruction?
MOV ECX,[ESI][EDI]
The Attempt at a Solution
I know that an effective address is created by adding the data segment...
I want to start with assembly language programming after some years with C, cause I think it's a good way to learn how a computer actually works.
But how I can compile assembly code under Mac OS X?
I went to a library, and I had found out that many books are outdated, and no book covers...
1.
firstFunction (parameters has an input and an output){
(ebx holds the input, ecx holds the output)
...
mov eax, 1
push ebx
call factorial
pop ebx
...
}
factorial(unsigned int n){
push ebx
mul ebx
}
3. I...
Homework Statement
A 1-address computer is one whose instruction can contain at most one operand address. MARIE is an example of such a computer. Typically each instruction is stored as a single word in the memory. Assume the following machine details.
(i) A word contains n bits, and k...
Homework Statement
This question is being done using MARIE.
Suppose initially AC = 1000, M[200] = FFFF, PC = 100. Trace the fetch execute (instruction) cycle of the following sequence of MARIE instructions using Register transfer notation (similar to Figure 4.14 of your text).
Load 200...
1. I need help understanding how to read the parameters from the stack and not from anywhere else. In addition, what is difference between reading from the stack and somewhere else?
For example, if the parameters had this:
logicUnit(unsigned long int value, unsigned long int flags, unsigned...
Hi Everyone,
Trying to write some assembly code by just first working out some pseudo to get a basis down for a program which transfers N bytes from m amount different sources, whose sizes are N bytes to m amount different destinations.
So far, I've been trying to simplify what it wants...
1. I'm stuck on understand two lines of code because I don't really understand how the command (dword ptr and 'and') works.
array = {40, 86, 10, 14, 68, 25, 50, 7, 9}
int method(int array[])
{
__asm{
mov ebx, 0
mov esi, array
(there is a loop that goes around ten times before...
Homework Statement
I have to write a simple program in NASM to read in a character then output what kind of character it is.
The Attempt at a Solution
There are some things about NASM that confuse me so i marked them.
segment .data
BUFFLEN equ 1 ; length of buffer
CtrlMsg db...
Homework Statement
I have a homework question: Calculate the effective address and determine the addressing mode that is specified for each memory operand in the following statements.
(a) MOV EAX, [label1] ; label1 is at location 0x00D5A360
(b) MOV EAX, [EBX] ; EBX points to location...
I am asking user to enter a number if user hits enter key instead of entering a value then i need to exit the program. see code below
; i put the value into eax
cmp AL,0 ;i compare is al reg is empty
je exitProgram
; some instructions
exitProgram:
Invoke ExitProcess,0
Public...
I am getting input from user and convert to int . if input is not valid(has invalid chars etc) i need to ask user
to re enter the number .
;get number
jc displayErroMsg ; If value is not valid then display msg and ask user to re enter the value.
;I don't know where I need to put...
Homework Statement
Write a single line MIPS assembly code as an input through the SPIM simulator console and the program will output a 32 bit MIPS machine code through the console. I'm using PCSpim to write the code.
An example,
I input this instruction in the console.
addi...
I have to calculate the number of M6 Button head screws required to hold a door panel of 40 kg when 700N (calculate at the center line of the mounting holes) of force is applied laterally. I want to consider only lateral case when the force is applied perpendicular to the door panel. Any idea...
Hi all,
I would like to know if its possible and consistent to compose the global system matrix with different FEM elements such as frame, plane, shell solid etc... Theoritically all of them will have the same DOF per node just only comprising the local matrix will differ. And as long as we...
Hi all,
I was just wondering if anybody knew what the attached assembly is and how it works- any information on where to find a CAD model for one would be greatly appreciated, too!
Thanks guys
Homework Statement
Create a Menu to run a program for LED sequences using procedure calls or macros as follows: [1] Blinking LED [2] Two at a time [3] Alternate [4] Rotate Right [5] Rotate Left . The program will display „1‟ for LED “ON” and „0‟ for LED “OFF”. Use delay, message output and...
I want to learn Assembly Langauge ... ?
Hi.
I want to learn Assembly language.
My goal is to eventually be able to program fluently in Assembly language. I know this will take a lot of work, but that's fine with me.
Currently, I know the basics of how a CPU reads strings of...
I've been programming c/c++ for a month or two, I have experience with Expression 2 (an in game programming language in Garrys Mod which is similar to VBasic), and 7 years experience with web development.
What I'm wanting to do now is begin learning Assembly language and how to compile it...
Homework Statement
I'm having hard time appreciating this topic since they're not discussed well and, as of now, I still don't have resources or sample programs.
We're required to display Az By Cx . . . Yb Za including spaces using DOS debug.
Homework Equations
The Attempt at a Solution...
I have a problem in relation to the pressure in a closed piston and cylinder assembly, I know the compression ratio and want to work out the pressure when the volume is at its lowest, boyles law only seems to works if the temperature remains constant but I know that as the piston moves and the...
Hello, so i have a problem with my assembly code. I want to clear the screen of the DOS and display the string input in the first line. I decided to make a loop that will run 2000 times and fill the space with [20H, which is the ascii for space bar] however, It clears out my message as well and...
Hi everybody,
I've been reading most literature I can find on the theory and practice of creating inductive/electromagnetic coils.
Nearly all sources mention creating multiple layers of wound wire (often mentioning to add an insulating coating/wrapping in between), but only on source...
Has anyone here have any experience on PCB Design / Fab / Assembly start up?
May I know how did it to?
What are the considerations?
What are the challenges involved?