conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Change VOID into VOID * in function header\n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@650 6f19259b-4bc3-4df7-8a09-765794883524\n" }, { "from": "human", "value": ";------------------------------------------------------------------------------\r\n;\r\n; C...
assembly
chosen
[ { "from": "human", "value": "Add linear search in x86 assembly lang\n" }, { "from": "gpt", "value": "TITLE Linear/Sequential search implemented in x86 assembly (MASM)\n; Search for a value in an array of bytes by comparing each value with a key\n; return the position of the key\n; O(n) time comp...
assembly
chosen
[ { "from": "human", "value": "Add patch to display popup when attempting to enter forest portrait\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch adds a text popup if the player tries to enter the Forest of Doom portrait before it's unlocked.\n; This...
assembly
chosen
[ { "from": "system", "value": "Add synchronization at the end of the copy test.\n" }, { "from": "human", "value": "\n\t\t\t.regalias count s1\n\t\t\t.regalias source s2\n\t\t\t.regalias dest s3\n\t\t\t.regalias temp s4\n\n_start\t\ttemp = 0xf\n\t\t\tcr30 = temp\t\t\t\t; start all strands\n\n\t\t\...
assembly
chosen
[ { "from": "human", "value": "Add experiment showing use of string as immediate value in source operand.\n" }, { "from": "gpt", "value": "; Sandbox asm file template to start experimenting from\r\n\r\nSECTION .data\r\nSECTION .text\r\n\r\n global _start\r\n\r\n_start:\r\n nop\r\n\r\n mov eax,'...
assembly
chosen
[ { "from": "system", "value": "Hack: Move familiar type image in zoom menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Move images in rupe (zoom) menu.\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;\n;; Licensed ...
assembly
chosen
[ { "from": "human", "value": "Add patch to fix infinite quest rewards bug in PoR\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/arm9.bin\", 02000000h\n\n; Disables the start button exiting the quests menu.\n; The B button can be used to exit the ques...
assembly
chosen
[ { "from": "human", "value": "Convert a string from uppercase to lowercase.\n" }, { "from": "gpt", "value": "; Sandbox asm file template to start experimenting from\r\n; converts the Snippet string in memory to lowercase by looping and\r\n; adding 32 to each byte in the string\r\n\r\nSECTION .dat...
assembly
chosen
[ { "from": "human", "value": "Add example asm files for testing\n" }, { "from": "gpt", "value": "; Test program to bit-bang a single character out SOD as serial async data\r\n\r\n org 00000H\r\n\r\nBITTIME equ 0113h ; Time delay for a single bit\r\nOUTBITS equ\t00Bh\r\n\r\...
assembly
chosen
[ { "from": "system", "value": "Add tabs to sandbox template.\n" }, { "from": "human", "value": "; Sandbox asm file template to start experimenting from\r\n\r\nSECTION .data\r\nSECTION .text\r\n\r\n global _start\r\n\r\n_start:\r\n nop\r\n\r\n mov eax,1\t\t; Code for Exit Syscall\r\n mov ebx,0...
assembly
chosen
[ { "from": "human", "value": "Add patch to change number of map tiles in DoS\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch slightly changes the code that calculates what percentage of the map you have explored so that the total number of tiles can ...
assembly
chosen
[ { "from": "system", "value": "Add an 64-bit error function\n" }, { "from": "human", "value": "; Copyright 2015 Philipp Oppermann\n;\n; Licensed under the Apache License, Version 2.0 (the \"License\");\n; you may not use this file except in compliance with the License.\n; You may obtain a copy of...
assembly
chosen
[ { "from": "human", "value": "Add patch to make PoR enemy resistances behave like DoS and OoE\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch makes resistances in PoR act like resistances in DoS and OoE.\n; In vanilla PoR, if an enemy resists even on...
assembly
chosen
[ { "from": "system", "value": "Fix position of blackjack player plays\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the numbers in blackjack minigame of casino.\n;; Copyright 2015 Benito Palacios (ak...
assembly
chosen
[ { "from": "system", "value": "Fix bug when changing PoR starting area\n" }, { "from": "human", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/arm9.bin\", 02000000h\n\n.org 0x02051F90 ; Where the original game's code for loading area/sector/room indexes is.\n b 020BFC00h ...
assembly
chosen
[ { "from": "system", "value": "Fix error with root directory entry for STAGE2.BIN\n" }, { "from": "human", "value": "; Volume Label\ndb 'BOOTDISK' ; File Name\ndb ' ' ; File Extension\ndb 0x08 ; Attribute\ndb 0x00 ; Reserved for NT\ndb 0x01 ; Creation\ndw 0x0000 ; Cre...
assembly
chosen
[ { "from": "human", "value": "Add patch to enable skipping AoS cutscenes on first playthrough\n" }, { "from": "gpt", "value": ".gba\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/rom.gba\", 08000000h\n\n; Allow skipping events with start, even if you haven't beaten the game once yet.\n.o...
assembly
chosen
[ { "from": "human", "value": "Add flash on Z cancel demo\n" }, { "from": "gpt", "value": "// Super Smash Bros. flash on Z cancel demonstration\n\narch n64.cpu\nendian msb\n//output \"\", create\n\ninclude \"LIB\\N64.inc\"\ninclude \"LIB\\macros.inc\"\n\norigin 0x0\ninsert \"LIB\\Super Smash Bros....
assembly
chosen
[ { "from": "human", "value": "Add patch to fix bug where common enemy creature sets boss death flag\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch fixes the bug where the common enemy version of The Creature sets his boss death flag.\n\n.open \"ftc/...
assembly
chosen
[ { "from": "human", "value": "Add routine for 32bit print.\n\n* print/print_string_32bit.asm: New file.\n" }, { "from": "gpt", "value": "; =============================================================================\n; Copyright (C) 2015 Manolis Fragkiskos Ragkousis -- see LICENSE.TXT\n; =======...
assembly
chosen
[ { "from": "human", "value": "DoS: Add patch to make Balore face left if player enters from left\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch makes Balore detect which side of the room the player enters from, and if it's from the left, he moves hi...
assembly
chosen
[ { "from": "system", "value": "Move level number in equip menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in equip menu\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;\n;; Licens...
assembly
chosen
[ { "from": "system", "value": "Modify version string to be more concise\n\nSwap \"-dirty\" with \"+\"\n" }, { "from": "human", "value": "; 0x0000\n; RST 0x00\n jp boot\n; Magic Number\n; 0x0003\n.db \"KK\"\n\n; 0x0008\n; RST 0x08\n.fill 0x08-$\nrkcall:\n jp kcall\n.fill 0x10-$\n; 0x0010\n; ...
assembly
chosen
[ { "from": "human", "value": "Add patch to skip emblem drawing screen in PoR\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/overlay9_25\", 022D7900h\n\n; Skip the screen where the player has to draw an emblem and press OK when starting a new game.\n\...
assembly
chosen
[ { "from": "human", "value": "Add patch to fix Gravedorcus from left entrance\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch makes Gravedorcus not immediately damage the player if they enter from the left door.\n\n.open \"ftc/overlay9_33\", 022B73A0...
assembly
chosen
[ { "from": "system", "value": "Move up the number of military games\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the numbers in military minigame of casino.\n;; Copyright 2015 Benito Palacios (aka p...
assembly
chosen
[ { "from": "human", "value": "Add patch to always enable dowsing hat effect\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; Always have the Dowsing Hat effect of beeping when there's a hidden blue chest, even if you don't have Dowsing Hat equipped.\n\n.open \"f...
assembly
chosen
[ { "from": "human", "value": "Add asm patch to implement magical tickets in DoS\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n@Overlay41Start equ 0x023E0100\n@FreeSpace equ 0x023E0100\n\n.open \"ftc/overlay9_0\", 0219E3E0h\n\n.org 0x021EEF00\n b @FreeSpace\n\n...
assembly
chosen
[ { "from": "human", "value": "Add patch to fix some PoR bosses not playing music in boss rando\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; Fixes the boss rush versions of certain bosses so they play the boss music when they're created.\n; This is for the bo...
assembly
chosen
[ { "from": "system", "value": "Fix Windows compileation for VS 2010\n" }, { "from": "human", "value": ".386\r\n.model flat\r\nexception_handler proto\r\n.safeseh exception_handler\r\nend\r\n" }, { "from": "gpt", "value": ".386\r\n.model flat\r\nexception_handler proto c\r\n.safeseh ex...
assembly
chosen
[ { "from": "system", "value": "i686: Remove unused sentinel table for i686\n" }, { "from": "human", "value": "; This file is a part of the IncludeOS unikernel - www.includeos.org\n;\n; Copyright 2015 Oslo and Akershus University College of Applied Sciences\n; and Alfred Bratterud\n;\n; Licensed u...
assembly
chosen
[ { "from": "system", "value": "Test source update to test both gl> and gs>\n" }, { "from": "human", "value": "\\ This software is the Kestrel-3's first milestone: print a bunch of \"A\"\n\\ characters to the console.\n\n\t$2000 ORG\t\t( RISC-V ISA spec says we boot here. )\n\n\t0 x31 auipc\t\t( X...
assembly
chosen
[ { "from": "system", "value": "Fix the bold effect for stamps in request menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Increase textbox size in request menu\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;\n;; L...
assembly
chosen
[ { "from": "system", "value": "Add call for load_gdt, but disabled because it triple faults\n" }, { "from": "human", "value": "# multiboot config and setup\n.set ALIGN, 1<<0 # align modules on page boundaries\n.set MEMINFO, 1<<1 # provide memory map\n.set FLAGS...
assembly
chosen
[ { "from": "system", "value": "Remove unnecessary entry from IDT\n" }, { "from": "human", "value": "use32\nglobal _interrupt_handler_kbd_wrapper\nglobal int_handler\nglobal test1 \nglobal run_interrupt\nalign 4\n\nextern _interrupt_handler_kbd\n\n_interrupt_handler_kbd_wra...
assembly
chosen
[ { "from": "human", "value": "Add patch to keep DoS drawbridge down once lowered\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch makes the drawbridge in DoS stay down permanently once you've lowered it once.\n; The button will stay depressed, so that...
assembly
chosen
[ { "from": "human", "value": "Add completely untested multitasking code" }, { "from": "gpt", "value": "taskswapHandler :\n\tpop ecx\t; pop eip into ecx\n\t\tpusha\n\t\tmov ebx, [currentTaskNum]\t; get the current task\n\t\timul ebx, TASK_OBJ_SIZE\n\t\tadd ebx, RunningTaskList\n\t\tmov [ebx+Task_e...
assembly
chosen
[ { "from": "system", "value": "Set global GOT at 0 and merge infinite loops\n" }, { "from": "human", "value": "use32\n\nglobal _GLOBAL_OFFSET_TABLE_\nglobal __morestack\nglobal abort\nglobal memcmp\nglobal memcpy\nglobal malloc\nglobal free\nglobal start\n\nextern main\n\nstart:\n ; rust funct...
assembly
chosen
[ { "from": "system", "value": "Add optimistic disk loading code to get the map into 000\n" }, { "from": "human", "value": "BasicUpstart2(start)\n\n\t* = $0810 \"Main\"\nstart:\n\t\n\n\n\trts\n\t\n" }, { "from": "gpt", "value": "BasicUpstart2(start)\n\n\t* = $0810 \"Main\"\nstart:\n\tj...
assembly
chosen
[ { "from": "system", "value": "Check the state->st_b.condition when returining from the interpreter\n\nRight now we are checking to make sure that the halted state is set.\nThis is not correct. Eventually we will want to add a mechanism for\nspecifying if we are transfering from the interpreter to compiled ...
assembly
chosen
[ { "from": "human", "value": "Add test for fsave and frstor\n" }, { "from": "gpt", "value": "global _start\n\nsection .data\n\talign 16\n\n%include \"header.inc\"\n\n sub esp, 128\n fldz\n fld1\n fsave [esp]\n frstor [esp]\n\n%include \"footer.inc\"\n" } ]
assembly
chosen
[ { "from": "human", "value": "Add proof of concept file for using assembler macros instead of instructions.\n" }, { "from": "gpt", "value": ".cpu \"6502\"\n.format \"flat\"\n* = $F000\n\nBackgroundColor = $80\nINT_Byte_SIZE = 1\n\nVSYNC = $00\nVBLANK = $01\nWSYNC = $02\nCOLUBK = $09\nTIM64T = $2...
assembly
chosen
[ { "from": "system", "value": "Move stamp gives in request menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Increase textbox size in request menu\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;\n;; Licensed under ...
assembly
chosen
[ { "from": "system", "value": "Tweak to skip name signing patch\n" }, { "from": "human", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/arm9.bin\", 02000000h\n\n; Skip the screen where the player has to sign their name and press OK when starting a new game.\n\n.org 0x02045...
assembly
chosen
[ { "from": "system", "value": "Print additional info about SID file\n" }, { "from": "human", "value": "// load sid music\n\n.var music = LoadSid(\"res/jeff_donald.sid\")\n//.var music = LoadSid(\"res/demo.sid\")\n.pc = music.location\n.fill music.size, music.getData(i)\n\n.var picture = LoadBinar...
assembly
chosen
[ { "from": "system", "value": "Fix bug in dos seal drawing skip patch\n" }, { "from": "human", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/overlay9_0\", 0219E3E0h\n\n; This makes it so you don't need to draw a Magic Seal to kill a boss.\n\n.org 0x02213C04 ; Location of ...
assembly
chosen
[ { "from": "system", "value": "Make SYS call to label main, not the end of the BASIC program.\n" }, { "from": "human", "value": " org $0fff\n\nload_address:\n $01 $10 @(low basic_end) @(high basic_end) $01 $00 $9e \"4109\" 0\nbasic_end:\n $00 $00\n" }, { "from": "gpt", "value...
assembly
chosen
[ { "from": "system", "value": "Move technique name and PM in team menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in team menu\n;; Copyright 2015 Benito Palacios (aka pleonex)\n;;\n;; ...
assembly
chosen
[ { "from": "human", "value": "Add Linux \"hello world\" example\n" }, { "from": "gpt", "value": ";\n; Assembly \"Hello, World!\" for Linux\n;\n\n/* Properly defined in <sys/syscall.h> */\n%define SYS_exit\t1\n%define SYS_write\t4\n\n\tsection .text\n\n\tglobal _start\n_start:\n\t; gdb doesn't lik...
assembly
chosen
[ { "from": "human", "value": "Add patch to make gergoth not be on top of player coming from left\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch makes Gergoth appear on the right half of his room when the player enters from the left so he's not on to...
assembly
chosen
[ { "from": "human", "value": "Add patch to start Julius with the Tower Key\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/overlay9_0\", 0219E3E0h\n\n; This patch starts the player with the Tower Key in Julius mode.\n; This is so the player doesn't ge...
assembly
chosen
[ { "from": "system", "value": "Change setup for protected mode\n" }, { "from": "human", "value": "[ORG 0x10800]\n\nPMode:\n\tmov eax, 0xFEEDFACE\n\tmov ecx, 0xF00DD00D\n\tmov edx, 0xBAADBEEF\n.jmpy:\n\thlt\n\tjmp .jmpy" }, { "from": "gpt", "value": "[ORG 0x10800]\n[BITS 32]\nPMode:\n\...
assembly
chosen
[ { "from": "human", "value": "Add asm patch to break balore blocks with any weapon\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/overlay9_0\", 0219E3E0h\n\n; This makes it so that all melee weapons can break balore blocks, not just Julius's whip.\n\...
assembly
chosen
[ { "from": "human", "value": "Add in example that was provided to create a basic \"kernel\" for the atari game for rendering to the screen.\n\n" }, { "from": "gpt", "value": "processor 6502\ninclude \"vcs.h\"\ninclude \"macro.h\"\n\nSEG\nORG $F000\n\nReset\n\nStartOfFrame\n\n; Start of vertical b...
assembly
chosen
[ { "from": "system", "value": "Fix load address - still not working :(\n" }, { "from": "human", "value": "//============================================================\n// .efo header\n//============================================================\n\n.pc = $0\n\n.text \"EFO2\" // filefo...
assembly
chosen
[ { "from": "system", "value": "Increase textbox width of item name in menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in the effect of items\n;; Copyright 2014 Benito Palacios (aka ple...
assembly
chosen
[ { "from": "human", "value": "Add PoR patch to fix bonus STR not affecting martial art\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; In vanilla PoR Martial Art does not take bonus STR (e.g. from STR Boost) into account when calculating its damage.\n; This pat...
assembly
chosen
[ { "from": "system", "value": "Return 0 for no items\n" }, { "from": "human", "value": "; Based on http://codekata.com/kata/kata09-back-to-the-checkout/\n\n\t\t\torg\t8000h\n\ninclude src/zx-spec.asm\n\n\t\t\tspec_init\n\n\tdescribe 'price'\n\t\tit 'Returns 0 for no items'\n\n\t\t\tld\ta,$FF\n\t\...
assembly
chosen
[ { "from": "human", "value": "Add patch to make wygol unlocked from the start in OoE\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/overlay9_22\", 02223E00h\n\n; Shanoa mode: Makes Ecclesia and Wygol be unlocked from the start.\n.org 0x0223B7F4 ; Cod...
assembly
chosen
[ { "from": "system", "value": "Write to 0x70 instead 46\n" }, { "from": "human", "value": "LLB R1, 70 #Address\nLHB R1, 0xCC\nLLB R2, 59\nLLB R12, 34\nLLB R13, 45\nLLB R14, 78\n\nSW R1, R1, 0\nSW R12, R1, 1\nSW R13, R1, 2\nSW R14, R1, 3\n\nLW R3, R1, 0\nADD R4, R2, R2\nLW R7, R1, 1\nADD R4, R4, R...
assembly
chosen
[ { "from": "system", "value": "test: Fix file with no final newline\n\nFix test/br2030823.asm, which had no final newline.\n\nSigned-off-by: H. Peter Anvin <8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com>\n" }, { "from": "human", "value": "\tbits 64\n\tVFMADDPD xmm0, xmm1, [0], xmm3\n\tVFMADD...
assembly
chosen
[ { "from": "human", "value": "test: Add test for BR 3187743\n\nSigned-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@gmail.com>\n" }, { "from": "gpt", "value": ";Testname=unoptimized; Arguments=-O0 -fbin -obr3187743.bin; Files=stdout stderr br3187743.bin\n;Testname=optimized; ...
assembly
chosen
[ { "from": "system", "value": "Include upper 32-bits of tsc.\n" }, { "from": "human", "value": "; \n; Copyright Mehdi Sotoodeh. All rights reserved. \n; <mehdisotoodeh@gmail.com>\n;\n; Redistribution and use in source and binary forms, with or without\n; modification, are permitted provided that...
assembly
chosen
[ { "from": "human", "value": "Add patch to prevent overlapping events in first room of DoS\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch fixes issues that could happen in the first room of the castle if the player got one of the bad endings before ...
assembly
chosen
[ { "from": "human", "value": "Add patch for boss orbs to reload some boss rooms in OoE\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch makes it so getting a boss orb in Mystery Manor or Ecclesia will reload the room.\n; This is because the cutscene a...
assembly
chosen
[ { "from": "human", "value": "Test of immediate handling on 64-bit mode\n" }, { "from": "gpt", "value": "\tbits 64\n\n\tmov rax,1234567890abcdefh\n\tmov eax,1234567890abcdefh\n\tmov rax,dword 1234567890abcdefh\n\tmov rax,qword 1234567890abcdefh\n\tmov dword [rsi],1234567890abcdefh\n\tmov qword [r...
assembly
chosen
[ { "from": "human", "value": "Add patch to remove Shanoa back glow\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch makes the color at index 2 in Shanoa's palette (the glyph on her back) not glow and switch between colors automatically.\n\n.open \"ftc...
assembly
chosen
[ { "from": "system", "value": "Keyboard: Remove any space between chars\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\r\n;; Reduce the font space\r\n;; Copyright 2015 Benito Palacios (aka pleonex)\r\n;;\r\n;; Licensed under ...
assembly
chosen
[ { "from": "system", "value": "Fix familiar money give number position\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in familiars menu\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;...
assembly
chosen
[ { "from": "human", "value": "Test for various ELF64 GOT references\n\nTry to test for various GOT references in ELF64.\n\nSigned-off-by: H. Peter Anvin <8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com>\n" }, { "from": "gpt", "value": ";Testname=noerr; Arguments=-felf64 -ogotoff64.o; Files=std...
assembly
chosen
[ { "from": "system", "value": "Move number of casino coins\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in the casino dialogs\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;\n;; Li...
assembly
chosen
[ { "from": "system", "value": "Move health state in team menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in team menu\n;; Copyright 2015 Benito Palacios (aka pleonex)\n;;\n;; Licensed...
assembly
chosen
[ { "from": "system", "value": "Set the stack-less kernel stack to a safe value" }, { "from": "human", "value": "\t.file\t\"context.asm\"\n\t.text\n\t.align\t2\n\t.global\tkernel_enter\n\t.type\tkernel_enter, %function\nkernel_enter:\n\tmov\tr2, lr\n\tmrs\tr3, spsr\n\n\tmsr\tcpsr, #0x9F \t\t/* sys...
assembly
chosen
[ { "from": "human", "value": "Add sample code for ApplePi.\n" }, { "from": "gpt", "value": "# Example code, just demonstrating each instruction\n add $2 $0\n sub $3 $1\n rand $4 5\nlabel:\n load $6 $7\n store $8 $9\n jal label\n jr $10\n beq $11 label\n bgt $12 label\n set $13 $14\n se...
assembly
chosen
[ { "from": "system", "value": "Make work with new BSPL ABI reqs\n" }, { "from": "human", "value": "x0\t= 0\nra\t= 1\ndsp\t= 2\nrsp\t= 3\ngp\t= 4\ngvp\t= 5\nx16\t= 16\nx17\t= 17\nx18\t= 18\n\n\tinclude\t\"sdtest.asm\"\n\n\t; exit the emulator.\n\nemu_exit:\n\tandi\tx16, x16, 255\n\tslli\tx16, x16,...
assembly
chosen
[ { "from": "human", "value": "Implement yes in NASM for Mac OS X 64-bit\n\n" }, { "from": "gpt", "value": "global _main\nglobal _start\nextern _puts\n\nsection .text\n_main:\n add rsi, 8\n_start:\n push rdi\n push rsi\ncomp:\n sub rsp, 8\n cmp rdi, 1\n jg nz\n je zero\nnz:\n mov rdi, [rsi...
assembly
chosen
[ { "from": "human", "value": "Add patch to prevent softlocks entering lighthouse from wrong door\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; If the player enters the lighthouse from one of the top doors while Brachyura is still alive, they would normally ge...
assembly
chosen
[ { "from": "system", "value": "Move slot color in item menu\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in the effect of items\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;\n;; ...
assembly
chosen
[ { "from": "human", "value": "Fix BR 1490407: size of the second operand of LAR/LSL\n\nThe second operand of LAR/LSL is always 16 bits.\n" }, { "from": "gpt", "value": "\tbits 64\n\n\tlar ax,bx\n\tlar ax,[rsi]\n\tlar ax,word [rsi]\n\tlar eax,bx\n\tlar eax,[rsi]\n\tlar eax,word [rsi]\n\tlar rax,bx...
assembly
chosen
[ { "from": "human", "value": "Add armips patch to fix the vanilla PoR death softlock\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; Fixes a vanilla bug where skipping the cutscene after you kill Death too quickly will prevent Death's boss death flag from being...
assembly
chosen
[ { "from": "human", "value": "PoR: Add patch to make spells always act fully charged\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/overlay9_0\", 021CDF60h\n\n; This patch makes Charlotte always use spells at full power, even when only half-charged.\...
assembly
chosen
[ { "from": "human", "value": "Add patch to always show drop percentages in PoR\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch causes you to always have the Gambler Glasses effect of showing percentages instead of star ratings for enemy drops.\n\n.op...
assembly
chosen
[ { "from": "human", "value": "Add ARMIPS patch to disable sliding puzzle\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; Disables the special doors of the sliding puzzle in Demon Guest House.\n\n.open \"ftc/arm9.bin\", 02000000h\n\n.org 0x0202738C\n ; This is ...
assembly
chosen
[ { "from": "system", "value": "Fix last position offset on colorwasher fx\n" }, { "from": "human", "value": "//============================================================\n// color washer routine\n//============================================================\n\ncolwash:\n lda color+$00 ...
assembly
chosen
[ { "from": "system", "value": "Use rsp as stack pointer, not esp\n" }, { "from": "human", "value": "[BITS 64]\n\n%include \"src/asm_routines/constants.asm\"\n\nglobal start\nextern rust_main\n\nsection .entry\nstart:\n ; update segments\n mov dx, gdt_selector_data ; data selector\n mov...
assembly
chosen
[ { "from": "system", "value": "Print \"===\" to the screen\n" }, { "from": "human", "value": "; JUMP.ASM\n; Make a jump and then hang\n\n; Tell the compiler that this is offset 0.\n; It isn't offset 0, but it will be after the jump.\n[ORG 0]\n\n jmp 07C0h:start ; Goto segment 07C0\...
assembly
chosen
[ { "from": "human", "value": "test: Add a test for various 32- and 64-bit relocations\n\nTest signedness in a couple of different contexts.\n\nSigned-off-by: H. Peter Anvin <8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com>\n" }, { "from": "gpt", "value": "\tbits 64\n\textern foo\n\n\tmov eax,[...
assembly
chosen
[ { "from": "system", "value": "Change name of entry function\n" }, { "from": "human", "value": "bits 32\nsection .text\n align 4\n dd 0x1BADB002\n dd 0x00\n dd - (0x1BADB002 + 0x00)\n\nglobal start\nextern main\n\nstart:\n cli\n mov esp, kstack\n call ma...
assembly
chosen
[ { "from": "human", "value": "Add patch to add holes into the doors on the map for DoS\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This adds a single pixel hole to all doors drawn on the map to increase visibility, like in PoR and OoE.\n\n@Overlay41Start eq...
assembly
chosen
[ { "from": "system", "value": "Update patch to break balore blocks\n" }, { "from": "human", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/overlay9_0\", 0219E3E0h\n\n; This makes it so that all melee weapons can break balore blocks, not just Julius's whip.\n\n.org 0x02212A...
assembly
chosen
[ { "from": "system", "value": "Remove the branch for clarity\n" }, { "from": "human", "value": "add $t0, $t1, $t2\nsub $s0, $t0, $v0\nexit\nbeq $3, $8, 3\nnop\nnop" }, { "from": "gpt", "value": "add $t0, $t1, $t2\nsub $s0, $t0, $v0\nexit\nadd $t0, $t1, $t2\nnop\nnop" } ]
assembly
chosen
[ { "from": "system", "value": "Fix changing starting room in PoR not changing Old Axe Armor mode's starting room\n" }, { "from": "human", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n.open \"ftc/arm9.bin\", 02000000h\n\n.org 0x02051F90 ; Where the original game's code for loading ar...
assembly
chosen
[ { "from": "system", "value": "Add more 64-bit jump tests\n" }, { "from": "human", "value": "\tbits 64\n\tjmp rcx\n\tcall [rax]\n\tcall qword [rdx]\n" }, { "from": "gpt", "value": ";Testname=test; Arguments=-fbin -ojmp64.bin; Files=.stdout .stderr jmp64.bin\n\n\tbits 64\n\tjmp rcx\n\t...
assembly
chosen
[ { "from": "system", "value": "Increase items name textbox size\n" }, { "from": "human", "value": ";;----------------------------------------------------------------------------;;\n;; Align the position of the textbox in the effect of items\n;; Copyright 2014 Benito Palacios (aka pleonex)\n;;\n...
assembly
chosen
[ { "from": "human", "value": "Test for mov [mem], sreg\n" }, { "from": "gpt", "value": "global _start\n\nsection .data\n align 16\nmydword:\n dd 0\n\n%include \"header.inc\"\n\n ; 32-bit register move should set higher bits to zero\n mov eax, -1\n mov eax, ss\n and eax, 0xffff0...
assembly
chosen
[ { "from": "human", "value": "Add patch to reveal whole map from the start for DoS\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; Makes the entire map visible but greyed out from the start.\n\n.open \"ftc/arm9.bin\", 02000000h\n\n.org 0x020220C4\n ; Make the ...
assembly
chosen
[ { "from": "system", "value": "Rewrite the 16bit print routine.\n\n* print/print_string.asm: Rewrite.\n" }, { "from": "human", "value": "; =============================================================================\n; Copyright (C) 2015 Manolis Fragkiskos Ragkousis -- see LICENSE.TXT\n; =======...
assembly
chosen
[ { "from": "system", "value": "Fix srg mapping in hook (round 2)\n" }, { "from": "human", "value": "list n_IItemRenderer\nGETSTATIC net/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer.instance : Lnet/minecraft/client/renderer/tileentity/TileEntityItemStackRenderer;\nALOAD 1\nINVO...
assembly
chosen
[ { "from": "human", "value": "Add patch to fix DoS tower boss in boss rando\n" }, { "from": "gpt", "value": ".nds\n.relativeinclude on\n.erroronwarning on\n\n; This patch for the boss randomizer prevents the boss in Gergoth's tower from being loaded in until the player enters the top floor of the...
assembly
chosen
[ { "from": "human", "value": "Add basic background cycler example that is confirmed to work with 6502.Net.\n" }, { "from": "gpt", "value": ".cpu \"6502\"\n.target \"flat\"\n* = $F000\n\nBackgroundColor = $80\n\nVSYNC = $00\nVBLANK = $01\nWSYNC = $02\nCOLUBK = $09\nTIM64T = $296\nINTIM = $284\n\n...
assembly
chosen