-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cca6463
commit 4d752fc
Showing
5 changed files
with
196 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
const psp = @import("psp/pspsdk.zig"); | ||
pub const os = @import("psp/pspos.zig"); | ||
pub const panic = @import("psp/utils/debug.zig").panic; | ||
|
||
comptime{ | ||
asm(psp.module_info("Zig PSP", 0, 1, 0)); | ||
const std = @import("std"); | ||
|
||
comptime { | ||
asm (psp.module_info("Zig PSP", 0, 1, 0)); | ||
} | ||
|
||
pub fn main() !void { | ||
psp.utils.enableHBCB(); | ||
psp.debug.screenInit(); | ||
psp.debug.print("Hi!"); | ||
|
||
var f = try std.fs.cwd().openFile("hello.zig", .{.write = true}); | ||
std.debug.warn("{}", .{f.isTty()}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters