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
DLDAfterDark
2 hours agoIs The "SnapPocalypse" A Real Concern? Are You Prepared For SHTF? What Are Some Considerations?
83 watching -
19:58
TampaAerialMedia
14 hours ago $0.32 earnedKEY LARGO - Florida Keys Part 1 - Snorkeling, Restaurants,
3.32K7 -
1:23
Memology 101
2 days ago $1.73 earnedFar-left ghoul wants conservatives DEAD, warns Dems to get on board or THEY ARE NEXT
6.62K39 -
3:27:27
SavageJayGatsby
4 hours ago🔥🌶️ Spicy Saturday – BITE Edition! 🌶️🔥
41.3K -
26:09
Exploring With Nug
14 hours ago $9.96 earned13 Cold Cases in New Orleans What We Discovered Beneath the Surface!
41.2K14 -
27:39
MYLUNCHBREAK CHANNEL PAGE
8 hours agoDestroying Time.
124K28 -
3:27:19
Mally_Mouse
4 hours ago🌶️ 🥵Spicy BITE Saturday!! 🥵🌶️- Let's Play: Minecraft Christmas Adventure!!
126K4 -
2:14:31
Side Scrollers Podcast
9 hours agoSide Scrollers INVITE ONLY - Live From Dreamhack
154K12 -
1:18:23
Simply Bitcoin
2 days ago $14.13 earnedThe Bitcoin Crucible w/ Alex Stanczyk and Lawrence Lepard
35.9K5 -
1:25:03
Jeff Ahern
9 hours ago $22.90 earnedThe Saturday Show with Jeff Ahern
98.7K13