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
-
LIVE
CassaiyanGaming
1 hour ago🟢LIVE - The OUTLAST Trials with JahBless & CatDog
69 watching -
10:54
Nate The Lawyer
2 days ago $6.75 earnedNEW Charges & Lawsuit For Fake Doctor Illegal Who Ran Schools For Decades
25.8K25 -
LIVE
Joker Effect
1 hour agoSTREAMER NEWS: Adin Ross, LupLupka, SideScrollers, N3on, TrainwrecksTv, Cuffem, WestCol, BottedWTF.
403 watching -
LIVE
IsaiahLCarter
1 day ago $2.37 earnedWill New York City Choose Communism? || APOSTATE RADIO 032 (with John D. Macari)
174 watching -
2:31:41
Illyes Jr Gaming
4 hours agoRetro Sports Game Night NHL 94
4.57K2 -
HELMETFIRE
1 hour ago🟢GAMING WITH FIRE EP14🟢
2.83K2 -
Damysus Gaming
2 hours agoBorderlands 4 -UVH Grinding and Farming With Amon
2.18K2 -
25:47
Robbi On The Record
5 hours ago $2.14 earnedExposing the OnlyFans Industry (Agency Edition)
12.6K3 -
LIVE
ManoloCalifas
3 hours ago🔴 LIVE - BATTLEFIELD 6 ON A SUNDAY....
14 watching -
9:06
MattMorseTV
7 hours ago $13.11 earnedSchumer just BETRAYED 32 million of his OWN VOTERS.
18.3K49