Premium Only Content
Computer recreations: core wars
In this video I show you a Python implementation of a 1984 article by A. K. Dewdney from the "Scientific American" magazine called "In the game called Core War hostile programs engage in a battle of bits".
Using a circular list and implementing at least two of the proposed operations, it's possible to execute basic programs in the Redcode programming language.
The user codes the language mnemonics in the main function of the program which are then translated into "machine code" and stored into the "core memory", i.e.: circular list. The simulator will then execute these instructions.
Links to the article:
- https://www.scientificamerican.com/article/computer-recreations-1984-05/
- https://people.scs.carleton.ca/~soma/biosec/readings/akdewdney/First.htm
Source code:
Wikipedia:
- https://en.wikipedia.org/wiki/Core_War
CHAPTERS
0:00 Intro
0:22 General overview of the article: history, programming language, operations
1:37 Circular array
2:00 Circular list in Python
2:10 Instruction pointer: keeps track of the execution
2:44 The Simulator class
3:11 Structure of the machine code
4:18 Addressing types
5:12 A 3-instruction program replicated from the article
5:55 Check the expected result of the program
6:16 The "Imp" program
6:57 Important methods of the Simulator class: transform human mnemonics to machine code and vice-versa, store and execute operations
8:17 The MOV operation
8:27 Script execution
9:32 Outtro
#computerrecreations #corewars #python
-
3:06:55
TimcastIRL
10 hours agoDan Bongino To RESIGN, Trump Addresses The Nation
368K544 -
2:14:08
Barry Cunningham
10 hours agoLIVE BREAKING NEWS: President Trump Addresses The Nation! And More News!
66.1K30 -
5:15:27
ThatStarWarsGirl
12 hours agoTSWG LIVE: Discussing STAR WARS News with Special Guest Star Wars Theory!
52.1K5 -
2:42:40
Laura Loomer
10 hours agoEP162: LIVE: President Trump Addresses The Nation
66.7K33 -
1:32:05
Adam Does Movies
15 hours ago $12.45 earnedRob Reiner Films + Movie News + AMA - Live!
46.9K2 -
47:57
Professor Nez
14 hours ago🚨LIVE NOW: President Trump Addresses the Nation from the Oval Office
47.5K42 -
28:17
The White House
10 hours agoPresident Trump Delivers an Address to the Nation
122K158 -
4:44:53
Drew Hernandez
1 day agoTRUMP ADDRESSES THE NATION & BONGINO ANNOUNCES FBI DEPARTURE?
79.4K33 -
2:37:30
Badlands Media
21 hours agoBadlands Media Special Coverage - MY FELLOW AMERICANS the Alpha Warrior Show & Redpill Project
81K42 -
22:54
Jasmin Laine
16 hours agoMedia MELTS DOWN as Poilievre Surges—Ottawa Loses Control of the Narrative
38.9K21