Site Feedback

Have you ever cheated your teachers?

Last Sunday I had a class where I showed my assembler's programs (mcs-51). These classes very funny because everyone knows nothing about programming with this kind of assembler. This assembler is a very old. It's directly from end of 70th. I have a good knowledge about Intel x86 but I know almost nothing about mcs-51. So everybody used copies of few correct variants. But teacher hadn't realised that he checks copies of just of 2 or 3 variants. He is pretty old.

So he was checking my program. It was drawing a graph which consists of two main parts: hill and pit (---_---_---_...). The condition is: the hill must have two length of the pit. Of course this assembler can't draw a graph because it hasn't any display. So it just send signals and simulator interperts it as a graph. He asked me to show where does my program hold hill length and hill + pit length (at each iteration). But my program doesn't hold any length! So I was starting to "search" this plase in source code. At this time the teacher was distracted by another student. I found one variable and added it to "watch" windows which shows it value. And I just changed value to proper. After the teacher restored attention to me I told he: "Mr. XYZ, there is the value!". He accepted it.

Share:

 

2 comments

    Please enter between 0 and 2000 characters.

     

    Corrections

    No corrections have been written yet. Please write a correction!

    Write a correction

    Please enter between 25 and 8000 characters.

     

    More notebook entries written in English

    Show More