• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

How to explain assembler...

zeitghost

More fingers than teeth
Joined
Jul 6, 2005
Messages
35,983
Likes received
2,999
Thanks received
1,077
Got this student see... :(

Has now spent 2 sessions staring blankly at PC & not doing a lot. :confused: :( :(

I've explained about Mnemonics, and how the assembler program on the PC changes his source file from Mnemonics and stuff to funny hexadecimal numbers that get programmed into a PIC microcontroller.

This does not seem to permeate through the fog... :confused:


Any suggestions?

Short of using a baseball bat... :D
 
Try threatening to eat him. Then eat him anyway, it's nearly lunchtime after all.
 
Just pass him anyway with an A, and send him on his way.

Blimey, have you learned nothing about modern edukation?
 
Does he understand the concept of a program?

Get him to write out line by line what he wants to do in English.

When he has doen that correctly get him to translate it into assembler.

Simple.

If he doesnt understand the idea of a program then get im to write out simple tasks liking making a cup of tea as a program.
 
You forgot to add the step where he has to translate what he has written into French then Chinese then into assembler.

Might get the idea then.
 
Start him on:

sc-unde.jpg


and go from there.
 
Print Off
Iefzb4d0
Iefzb4d2
Print On
Print Nogen
Wtoa Csect 00000030
R0 Equ 0
R1 Equ 1
R2 Equ 2 Address Of Parm Field
R3 Equ 3 Length Of Parm Field/input Area Address
R4 Equ 4 Work Register For Length Of Parm/output Area
R5 Equ 5 Dcb Dsect Using Register
R6 Equ 6 Record Length Register
R7 Equ 7
R8 Equ 8
R9 Equ 9
R10 Equ 10 Bal Register
R11 Equ 11 Length Work Reister
R12 Equ 12
R13 Equ 13
R14 Equ 14
R15 Equ 15
Ml Equ 70
Save (14,12)
Lr R12,r15
Using Wtoa,r12
St R13,save+4 Save Callers Save Area Addr
La R11,save
St R11,8(r13) My Save Area Addr In Callers
Lr R13,r11 Now 13 Points To My Save Area
* End Of Standard Entry Structure
Eject
L R3,0(r1) Load Parm Addr
Sr R4,r4
Lh R4,0(r3)
La R3,2(r3)
Mvc Ipowtol+4(70),sp
Bctr R4,0
Ex R4,msgmove
Mvc Ipowtol+4(70),msg
Sr R1,r1
Wto Mf=(e,ipowtol)
Lr R3,r1
Stimer Wait,dintvl=time1
Dom Msg=(r3)
Stimer Wait,dintvl=time2
La R10,0
L R13,save+4
Return (14,12),rc=(15)
Eject
*********************************************************
* Constants And Variables *
*********************************************************
Ltorg 00005450
Save Ds 18f
*
Msgmove Mvc Msg(0),0(r3)
Sp Dc Cl1' '
Ipowtol Wto ' X
',routcde=(1,2),desc=(1),mf=l
*
Msg Dc Cl70' '
Ds 0d
Time1 Dc Cl8'00100000'
Time2 Dc Cl8'00001000'
End 00005900
 
Darmstadt: Could you change your avatar please? Every time you post I seem to lose half an hour! I am sure it is the hypnotic effect of your avatar.
 
Darmstadt: Could you change your avatar please? Every time you post I seem to lose half an hour! I am sure it is the hypnotic effect of your avatar.
 
zeitghost said:
Got this student see... :(

Has now spent 2 sessions staring blankly at PC & not doing a lot. :confused: :( :(

I've explained about Mnemonics, and how the assembler program on the PC changes his source file from Mnemonics and stuff to funny hexadecimal numbers that get programmed into a PIC microcontroller.

This does not seem to permeate through the fog... :confused:


Any suggestions?

Short of using a baseball bat... :D

Corrupting the minds of the innocent youth now are we?
 

Advertisers

Back
Top