VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » Knowledge, science, education » Crash Course
Instructions & Programs: Crash Course Computer Science #8

Instructions & Programs: Crash Course Computer Science #8

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Take the 2017 PBS Digital Studios Survey: Today we-re going to take our first baby steps from hardware into software! Using that CPU we built last episode we-re going to run some instructions and walk you through how a program operates on the machine level. We'll show you how different programs can be used to perform different tasks, and how software can unlock new capabilities that aren't built into the hardware. This episode, like the last is pretty complicated, but don-t worry - as we move forward into programming the idea of opcodes, addresses, and registers at this machine level will be abstracted away like many of the concepts in this series. Want to know more about the Intel 4004? You can read the manual here!
Date: 2022-04-04

Comments and reviews: 10


Don't we already know that 5 goes into 11 twice? Just do 11 - 5 = 6, then do 6 - 5 = 1, then stop as you know it goes into 11 twice with a remainder of 1. So why does the CPU need to go into negative to calculate that? Unless the negative is a good condition to use as you can say the loop is what decides how often a number goes into another number. So really the computer runs from 0. So 11 - 5 = 6 (0, 6 - 5 = 1 (1, 1 - 5 = -4 (2) and you know that when you get into negative, you've gone too far. So then you add the positive number back again to get to positive which is 1 which is the remainder. Since the computer doesn't intuitively know that 1 is the remainder, then going into a negative could be a good way of getting the computer to go back when it goes too far to get back the same answer. So that's why computers aren't as intelligent but they're really bloody fast.
reply

You literately could had stopped there at the -we added more instructions- instead of explaining it, after all: you're no doubt were going to demonstrate all this working which is easier to follow.
Also to put it simply the CPU -fetches- the data by searching for a code, the computer goes ah! An Instruction: and does whatever the code means: this then passes the values into the registers and either stores, adds, subtracts, etc the sum of the values and may store it into the RAM address. this is then incremented as we move onto to the next cycle and it repeats from there. The illustrations can be a bit confusing if you don't slow the video down and follow along when these yellow lines appear in context in what is being said.

reply

5 years of software engineering, never learned the basics so well. The Indian education system is so damn waste, just produces degree holders in the paper without any knowledge. This kind of video series should be introduced in all the colleges with much more detail and animations to get the core concepts clear, then only we can create a true IT powerhouse
reply

Here is my personal understanding: instruction in hardware sort of function in software, operation code sort of function name, operation name with address code to fetch value to run sort of function with argument needs to assign parameters to run. Difference is the one happens in hardware another one happens in software.
reply

5: 35, can anyone explain to me, at RAM -address 2- is -SUB B A- but it should be 5 - 11 right? not 11 - 5, I do understand the last register will keep the result. but if it do -SUB A B- then it'll erase the next subtract parameter. so i guess looping needs more than 2 register
reply

ok but the computer would've crashed because the incremented value leads to no Address in the RAM not because OP code of 0000. in the fetch phase everything is 0 and it starts loading from address 0 of the RAM so that would've been an endless loop.
reply

This reminds me back in the days when we use to crack programs, to 'nop' 'calls', swap 'jne' with 'je' or something that nature, to learn from Fravia's pages of reverse engineering, Phrozen Crew, W32Dasm, softice. ah. the goo old days.
reply

Thank you for putting together this course! I am a software engineer from a non-traditional background and these videos have been tremendously helpful to solidify the foundations upon which I work every day as a programmer.
reply

Dear Carrie Anne,
thanks you very much for the whole series! Could you please suggest me literatures/ reference material for this episode?
Thanks and best regards
Nirav

reply

this is NOT! in the right category for this google search called
( how do people program computers? )
I want to know how to reprogram a old windows 7 computer

reply
Add a review, comment






Other channel videos