원클릭으로
add-builtin
Add a new shell built-in command to BDOS. Use when asked to add a shell command, built-in, or CLI command.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add a new shell built-in command to BDOS. Use when asked to add a shell command, built-in, or CLI command.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Debug hardware issues on FPGC: SPI devices, DMA transfers, SD card, Ethernet, USB. Use when asked to debug a hardware problem, add debug output, or diagnose a peripheral issue.
Add a new syscall to BDOS and expose it to userland programs. Use when asked to add a system call, kernel API, or new OS functionality accessible from user programs.
Update documentation after making code or hardware changes. Use when asked to update docs, write documentation, or after completing a feature that needs documenting.
Create a new userBDOS program (user-space application for BDOS). Use when asked to write a new program, app, tool, or utility for the FPGC.
SOC 직업 분류 기준
| name | add-builtin |
| description | Add a new shell built-in command to BDOS. Use when asked to add a shell command, built-in, or CLI command. |
The shell is a userBDOS program at Software/C/userBDOS/sh.c.
Built-in commands are implemented directly in sh.c.
Edit Software/C/userBDOS/sh.c.
Add an implementation function following the existing pattern:
static int bi_YOURCOMMAND(int argc, char **argv)
{
// argc includes the command name itself
// argv[0] is the command name
if (argc < 2) {
print_str("Usage: YOURCOMMAND <arg>\n");
return 1;
}
// Implementation here
return 0; // 0 = success
}
Find the builtin dispatch section in sh.c and add your command.
The registration mechanism is a string comparison chain — add yours
following the existing pattern.
Find the help command implementation in sh.c and add a line
describing your new command.
make compile-userbdos file=sh
sh.cmake compile-userbdos file=sh passesFor commands that should be standalone programs (pipe-compatible,
usable outside the shell), create a new userBDOS program in
Software/C/userBDOS/ instead. See existing programs like ls.c,
cat.c, grep.c for examples. External programs are preferred
over builtins for most new commands.